www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/24/08:37:14

Message-ID: <35E15D6D.822A850A@mat.ufrgs.br>
Date: Mon, 24 Aug 1998 09:32:45 -0300
From: "Cláudio André Heckler" <heckler AT mat DOT ufrgs DOT br>
Organization: UFRGS
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Need to know free memory

Hi everyone !

	I'm creating a program with djgpp that need to use alot of 
memory, without swapping.  Sometimes I alloc it, sometimes I
free it.  I use the _go32_dpmi_get_free_memory_information function
to get the avaliable memory (I've disabled swap in CWSDPMI).

	Problem: the FAQ says, at 15.2 that "When you call free, 
DJGPP library doesn't return memory to the system, it just adds it
to its internal pool of free pages. So, from the system point of
view, these pages are not 'free'."

	This way, when I free memory, I don't see any change in
the value returned by _go32_dpmi_get_free_memory_information.
So, how can I calculate the REAL amount of free memory that I
can use ?

	Excuses for: my bad english; this long email; 
everything else.

	Configuration: DJGPP v2.01, CWSDPMI v0.90+ (r4), RHIDE v1.4

	Claudio A. Heckler
	(heckler AT mat DOT ufrgs DOT br)

	PS.: How do I subscribe to the mailling list ?

- Raw text -


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