Message-ID: <33669872.4D55@cs.com> Date: Wed, 30 Apr 1997 00:55:14 +0000 From: "John M. Aldrich" Reply-To: fighteer AT cs DOT com Organization: Two pounds of chaos and a pinch of salt MIME-Version: 1.0 To: Ron Stawicki CC: djgpp AT delorie DOT com Subject: Re: virtual memory exhausted References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Ron Stawicki wrote: > > 1) WIN95 provides a virtual memory manager; is this just specific to > windows, or does it tie in? > > 2) WIN95 has native DPMI, or is that what is provided by EMM386? Win95 has its own completely separate DPMI host, and this is what DJGPP programs use if they find it in the environment. DJGPP programs only load cwsdpmi if they do not find another DPMI host already present. EMM386 is an interesting study in wierdness. Microsoft's versions have never provided DPMI services. Novell/Caldera's version provides a slightly buggy DPMI. QEMM has its own variant of EMM386 which also provides DPMI services, and these also had problems with earlier versions. The moral: don't trust EMM386. ;) > 3) Does CSDPMI conflict with the native DPMI? Nope. As mentioned above, it's only loaded if there is no other host already present. > 4) As mentioned above, what would cause cc1plus to emit virtual > exhausted sooner than if the stack size is set to a lower size? How much free memory do you have available? Try running 'go32-v2' from the same DOS prompt you use to build the HP code. This will tell you how much total memory you have remaining. If it's really low, the solution depends on whether you're in DOS or Win95. In DOS, unload some drivers and adjust your SMARTDRV and RAMDRIVE cache sizes, or delete unused disk files. In Win95, go to the DOS box properties sheet and increase the maximum DPMI memory allocated to DOS programs to at least 16384K. (Hint: you can manually type in a value up to 65536K.) hth! -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | Plan: To find ANYONE willing to | http://www.cs.com/fighteer | | play Descent 2 on DWANGO! | Tagline: | ---------------------------------------------------------------------