www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/26/11:29:49

From: "Edmund Horner" <ejrh AT paradise DOT net DOT nz>
Newsgroups: comp.os.msdos.djgpp
References: <8o6cms$iph$1 AT nnrp02 DOT primenet DOT com> <8o6e3g$itn$1 AT nnrp02 DOT primenet DOT com>
Subject: Re: GPF when reading or writing files larger than a certain size
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Organization: Paradise Net
Message-ID: <967261321.630387@shelley.paradise.net.nz>
Cache-Post-Path: shelley.paradise.net.nz!unknown AT 203-96-146-18 DOT tnt2 DOT paradise DOT net DOT nz
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
Date: Sat, 26 Aug 2000 15:43:32 +1200
NNTP-Posting-Host: 203.96.152.26
X-Complaints-To: newsadmin AT xtra DOT co DOT nz
X-Trace: news.xtra.co.nz 967261341 203.96.152.26 (Sat, 26 Aug 2000 15:42:21 NZST)
NNTP-Posting-Date: Sat, 26 Aug 2000 15:42:21 NZST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

It'll be due to where you get your buffer from.  How big is your buffer?  If
you haven't actually allocated enough (or any) space for it, then the limits
your getting are probably where the actual memory given your program runs
out.

"Paul Vanukoff" <vanukoff AT primenet DOT com> wrote in message
news:8o6e3g$itn$1 AT nnrp02 DOT primenet DOT com...
>
> Ah ... never mind. I am using fread() and fwrite() now. Works much better.
> Still if someone has an answer, I wouldn't mind knowing. Thanks.
>
> --
> Paul Vanukoff
>
>
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019