delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/25/05:41:50

Date: Thu, 25 Feb 1999 11:53:55 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Y.K. Goh" <s6606555 AT np DOT edu DOT sg>
cc: djgpp AT delorie DOT com
Subject: Re: Out of memory while reading file
In-Reply-To: <36d4f046.0@nsuxnews>
Message-ID: <Pine.SUN.3.91.990225115047.2772X-100000@is>
MIME-Version: 1.0
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.)

- Raw text -


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