delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/02/17:12:00

Message-Id: <m0wulJj-0003EgC@fwd03.btx.dtag.de>
Date: Sat, 2 Aug 97 23:02 MET DST
To: djgpp AT delorie DOT com
References: <12212085919086 AT onaustralia DOT com DOT au>
Subject: Re: re: memory under win95
MIME-Version: 1.0
From: Georg DOT Kolling AT t-online DOT de (Georg Kolling)

Tom Cook schrieb:
> Alan Poppleton wrote:
> >I am having problems using memory under windows 95.  Basically I have 
> >32MB of ram and when I use the go32_dpmi_remaining_physical_memory() it 
> >only returns about 16MB of ram available.  Is this due to the windows 
> >dpmi program? If so, is there any way I can force my program to use 
> >cswdpmi? I have read that I can change the memory settings in windows in 
> >the properties menu, but I am writing a game and it would be very 
> >unproffessional to tell people that they must first alter the memory 
> >settings.
> >I know that there is also a lot of virtual memory, but isn't this slower 
> >than the physical memory?
>
> go32_dpmi_remaining_physical_memory only returns( as the name suggests )
> the amount of physical memory AVAILABLE. If it only returns 16MB on a 32MB
> system, then Win95 and any other apps are probably chewing 16MB. If the PIF
> settings need to be changed, and you want to distribute the package, why
> not include a PIF file in the distribution archive? Win95 will run the
> executable using the PIF file no matter which one the user executes, so
> including a PIF file should make memory settings fairly transparent to the
> user.
>
> A word of warning, though, a game which requires >16MB of free RAM might
> not be so popular...
>
> If all this is wrong please correct me, someone.

To use more than 16 MB RAM (at most 64 MB) you just have to change
'properties->memory->memory for DMPI' for the DOS box. If you set this to
65535, your program can use all free space in memory and in the windows 
swapfile (in most cases less than 64 MB) 


- Raw text -


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