From: Christian Fleischer Newsgroups: comp.os.msdos.djgpp Subject: malloc - free Date: Thu, 12 Feb 1998 19:08:20 +0100 Organization: Technical University of Berlin, Germany Lines: 21 Message-ID: <34E33A94.677D@cs.tu-berlin.de> Reply-To: daydream AT cs DOT tu-berlin DOT de NNTP-Posting-Host: anonymous235.ppp.cs.tu-berlin.de. Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello! My problem goes as follows: I have quite complex dynamic data-structures and want to control if they are removed correctly from memory when I quit my program. What function can I use to check how many memory is still available to check if itīs the same as when the program starts? I tried it with something like _go32_remaining_virtual_memory and ..physical.. but it didnīt produce the expected results. When I wanted to allocate 90000 bytes the remaining memory was reduced by 3*65536. I can figure out, that maybe go32 allocates in 65536 chunks, but where do I get the EXACT value? Is there a simple answer or a faq about it? Where is the difference between _go32..., _djgpp... and _dpmi... ? Some functions seem to produce the same results? Which should one prefer? Or is there always a small difference between similar results? Thanks a lot for clearing this fog for me, Christian