From: wichmann AT pythia DOT itkp DOT uni-bonn DOT de (Andreas Wichmann) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP under OS/2: DPMI config question Date: 15 Jan 1997 17:37:26 GMT Organization: RHRZ - University of Bonn (Germany) Lines: 28 Message-ID: <5bj4km$isi@news.rhrz.uni-bonn.de> NNTP-Posting-Host: pythia.itkp.uni-bonn.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp > I am running DJGPP under OS/2, and am having trouble with the DPMI > setup. I have used DJGPP V1/V2 in an MSDOS6.2 session under OS/2 3.0. First it worked. Later I changed something (what??) - virtual memory exhausted. I tried all settings I could think of and gave up. It workes again now, but don't ask me why. > Whether I make CWSDPMI.EXE available or not, Clear. OS/2 and Windows provide DPMI themselves, and CWSDPMI.EXE doesn't do anything if DPMI is already available. > GO32-V2 reports the following: > DPMI memory available: 375 Kb > DPMI swap space available: 60681 Kb My GO32-V2 reports correct values under DOS, but it says that I have 4GB (!) of virtual memory under OS/2. Under Win95, you shouldn't rely on GO32-V2 either as malloc() may change the sizes of the swap file as well as the disk cache size. You shouldn't worry about physical memory. OS/2 tries to allocate about 20MB of physical memory at startup, and doesn't free it (by swapping) before necessary. Free physical memory is generally wasted memory! Do you have a real "virtual memory exceeded in new"-problem? How much memory can you malloc() if you try? Andreas http://pythia.itkp.uni-bonn.de/~wichmann