delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/12/18:03:26

From: Christian Fleischer <daydream AT cs DOT tu-berlin DOT de>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


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