From: "Y.K. Goh" Sender: "Y.K. Goh" Subject: Out of memory while reading file Newsgroups: comp.os.msdos.djgpp X-User-Info: 153.20.60.104 s6606555 npnsnews NNTP-Posting-Host: 153.20.15.92 Message-ID: <36d4f046.0@nsuxnews> Date: 25 Feb 1999 14:40:06 +0800 X-Trace: 25 Feb 1999 14:40:06 +0800, 153.20.15.92 Lines: 24 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 ------------------------------