cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/05/23:04:17

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: memory under win95
Date: Sat, 02 Aug 1997 12:41:11 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 34
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <33E36326.4B06@cornell.edu>
References: <33E3004E DOT 27A9 AT wanadoo DOT fr>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0013.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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?

- yes it is because of windows dpmi.
- no you cannot force your program to use cwsdpmi under windows
- you should create a custom pif file for your program with the dpmi 
  memory set to 65536 by editing the properties. (you need to type
that   in.) this should be professional and allow you program to use the
max 
  possible dpmi memory under windows.)
- note that even though your program might report 16 Mb remaining  
physical memory, i don't think that really is not actual physical 
  memory. AFAIK it is the room remaining in the virtual address space 
  your program's physical memory is mapped into. 
-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************

- Raw text -


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