Message-ID: <35E15D6D.822A850A@mat.ufrgs.br> Date: Mon, 24 Aug 1998 09:32:45 -0300 From: "Cláudio André Heckler" Organization: UFRGS MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Need to know free memory Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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 ?