🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3544

Re: fread-inf >= 64K in Borland C++

#3544
From: Malcolm Reeves
Date: Tue, 10 Nov 1992 02:12
19 lines
1662 bytes
From article <67760001@acf3.NYU.EDU>, by gans@acf3.NYU.EDU (gans):
> Bill Denton writes:
>>/* acf3:comp.os.msdos.programmer / bill@sees.bangor.ac.uk (Bill Denton (AD)) /  4:55 am  Nov  9, 1992 */
> When I try to fread 64K or more in Borland C the PC locks up. This occurs with
>>all memory models and with version 2.0 and 3.0. Is this serious bug fixed in
>>version 3.1 ? How do I fix it, without the obvious, but unsatisifactory, solution of reading the data in chunks smaller the 64K ?
>>

I suspect the problem is not the fread() but the structure you are freading
into. In Borland C you can't have a structure bigger than 64K even using
the large and huge memory models. The same applies to MSC. I don't know of
an effective work around other than to read in 64K chunks.


--
------------------------------------------------------------------------------
Malcolm Reeves, Geological Engineering, University of Saskatchewan, Saskatoon,
SK, S7N 0W0 aka reeves@rocky1.usask.ca aka reeves@dvinci.usask.ca
------------------------------------------------------------------------------
Technical Details
Message-ID: <1992Nov10.021255.4517@access.usask.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!spool.mu.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!news
References: <67760001@acf3.NYU.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!spool.mu.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!news
From: reeves@rocky1 (Malcolm Reeves)
Newsgroups: comp.os.msdos.programmer
Subject: Re: fread-inf >= 64K in Borland C++
Message-ID: <1992Nov10.021255.4517@access.usask.ca>
Date: 10 Nov 92 02:12:55 GMT
References: <67760001@acf3.NYU.EDU>
Sender: news@access.usask.ca (USENET News System)
Reply-To: reeves@rocky1
Organization: University of Saskatchewan
Lines: 19
Nntp-Posting-Host: rocky1.usask.ca