delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/26/20:11:55

From: grs@{REMOVE.BEFORE.USE}liyorkrd.li.co.uk (George)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Out of memory while reading file
Date: Sat, 27 Feb 1999 00:44:44 GMT
Message-ID: <36d73fee.1711448@news.powernet.co.uk>
References: <36d4f046 DOT 0 AT nsuxnews>
X-Newsreader: Forte Agent 1.5/32.452
MIME-Version: 1.0
NNTP-Posting-Host: 195.60.5.161
X-Trace: 27 Feb 1999 00:49:48 GMT, 195.60.5.161
Lines: 30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Y.K. Goh" <s6606555 AT np DOT edu DOT sg> wrote:

> 
> My program while reading in a 200KB text data file, it exits with
> the following message:
> 
> Virtual memory exceeded in `new'
> 
> I thought DJGPP allows me up to 256MB of virtual memory? Then why
> does the problem occurs when reading a small 200KB text file?
> 
> Whats more it's just a simple test program to read in a text file
> and display it out, so the problem of memory leak (if any) is not
> so serious.
> 
> My program can read in file smaller than 240KB without problem.
> Beyond that, the problem will surface. Any idea what's wrong?
> 
> 
> ------------------------------
> Yong-Kwang Goh
> Ngee Ann Polytechnic
> The Centre for Computer Studies
> 
> Email: s6606555 AT np DOT edu DOT sg
> ------------------------------


let's see the code
....message ends.....

- Raw text -


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