ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/19/02:58:22

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-Id: <>
X-Sender: rgrela AT mail DOT ciudad DOT com DOT ar
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Fri, 19 Apr 2002 03:45:31 -0300
To: djgpp AT delorie DOT com
From: "R. Grela" <rgrela AT ciudad DOT com DOT ar>
Subject: Testing for memory leaks
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com


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)

Anyone knows how can I get that information?

Thanks in advance!
R. Grela

- Raw text -

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