delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/19/05:15:13.2

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Testing for memory leaks
Date: 19 Apr 2002 08:50:52 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 23
Message-ID: <a9olpc$cdm$1@antares.lu.erisoft.se>
References: <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20020419032335 DOT 00bb6378 AT mail DOT ciudad DOT com DOT ar>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

R. Grela (rgrela AT ciudad DOT com DOT ar) wrote:
: I'm writing a class that uses pointers and I want to check if all of them 
: are destroyed correctly, so I'm looking for a function that gives me some 
: information about the memory available or memory used to check if at the 
: program starts and the program ends the memory available is exactly equal.
: I don't know how memory management is implemented in programs compiled with 
: djgpp, I've looked the _go32_dpmi_get_free_memory_information function in 
: go32.h but I've make a test to get that information before and after making 
: MyObject* obj = new MyObject; and I get the same results viewing the field 
: available_physical_pages in _go32_dpmi_meminfo structure.
: May be I'm checking in the wrong place.
: (I remember in bc++ 3.1 that I've used the function coreleft)

FAQ 15.2.

: Anyone knows how can I get that information?

Does FAQ 22.4, section "Development toolkits and packages" help?


Right,

						MartinS

- Raw text -


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