Date: Thu, 12 Aug 1999 10:54:25 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Legolas10 cc: djgpp AT delorie DOT com Subject: Re: Memory usage question! In-Reply-To: <19990808112714.07070.00009009@ng-fy1.aol.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 8 Aug 1999, Legolas10 wrote: > I am using > DJGPP, and I have 96M RAM. DJGPP lets me allocate up to about 150Meg. > However, my hard drive is 6 gig, and I see no reason I couldn't allocate even > more, up to 1 gig or so. How do I do this? I am using new and delete. If you run on Windows (as I suspect you are), then the amount of virtual memory your programs can use is under Windows control; DJGPP cannot do anything about it. Try changing the DPMI memory settings of the DOS box (through Propert Sheets, under Memory). Note that for large settings you need to actually manually type the value into the dialog box, since the values that Windows lets you choose from are usually small. If you don't run on Windows, and if your DPMI server is CWSDPMI, you need to change the "Maximum number of 4K pages in swap file" parameter of CWSDPMI by running the cwsparam.exe program; the default is for 128MB. Do not increase this parameter beyond 65528 (i.e. 256MB, plus whatever RAM you have physically free, of virtual memory). Also note that the current version of CWSDPMI has bugs when the amount of virtual memory approaches 256MB; work is under way to fix those bugs.