delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/14/05:45:03

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problem with malloc in djgpp?
Date: 14 Mar 1997 04:59:39 GMT
Organization: The National Capital FreeNet
Lines: 21
Message-ID: <5galvr$bac@freenet-news.carleton.ca>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970312082447 DOT 3808A-100000 AT is> <5g5t3r$j30 AT lyra DOT csx DOT cam DOT ac DOT uk>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> |> That's because the value returned by `_go32_dpmi_remaining_virtual_memory' 
> |> *includes* the free physical memory.  When you add the two, you get 
> |> larger amount than what you actually have, so `malloc' fails.

Well, RHIDE tells me under DOS it has 70 free virtual megs, 7 free
physical ones. When I go into Windows, it says 1 free virtual and 5 free
physical. So, since I have seen virtual < physical, virtual cannot be
physical PLUS swap unless I have a negative amount of swap space!

On the other hand, I find it very difficult to believe that Windows uses
up 69 megabytes of swap, especially when I set it to only use 20 and on a
different disk than my DJGPP swap file. So why DJGPP only coughs up one
meg of virtual in Windows I don't know. (The 5 physical, I assume, is
because the Windows kernel and locked memory in other apps add up to 2.)

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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