Date: Thu, 25 Feb 1999 11:53:55 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Y.K. Goh" cc: djgpp AT delorie DOT com Subject: Re: Out of memory while reading file In-Reply-To: <36d4f046.0@nsuxnews> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On 25 Feb 1999, Y.K. Goh 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? If you are running on plain DOS and using CWSDPMI as your DPMI server, see section 15.4 of the DJGPP FAQ list. If you are running on Windows, or if the solutions suggested by section 15.4 don't help, run go32-v2 without arguments and post what it prints. (DJGPP supports 256MB of memory only if that much is available.)