delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/16/16:30:14

From: "Rafał Maj" <r_maj AT poczta DOT onet DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Memory leaks protection needed
Date: Sat, 16 Sep 2000 22:29:30 +0200
Organization: Academic Computer Center CYFRONET AGH
Lines: 23
Message-ID: <8q0l4r$o8g$1@info.cyf-kr.edu.pl>
NNTP-Posting-Host: d-94-53-13.cyfronet.krakow.pl
X-Trace: info.cyf-kr.edu.pl 969136091 24848 149.156.1.173 (16 Sep 2000 20:28:11 GMT)
X-Complaints-To: news AT cyf-kr DOT edu DOT pl
NNTP-Posting-Date: 16 Sep 2000 20:28:11 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
I think that some part(s) of my program are leaving memory without deleting
(free-ing) it.
Does anybody know, how to check, that all allocated memory was freed ?
Like :

begin_check();
  char *a=new char[10];
  char *b=new char[10];
  delete []a;
end_check();

Ofcourse I don't want to use anything like : _go32_available_memory(), since
this functions can't return real amount of free memory...

Thanks,
Rafal

P.S. Constructors/Destructors of my own classes are used to chceck is
everything o.k. But I have problem with build-in types like char, int, and
with strucs form other libraries like Allegro's BITMAP.


- Raw text -


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