| www.delorie.com/archives/browse.cgi | search |
| Date: | Thu, 3 May 2001 13:23:58 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Rafal Maj <maj_rafal AT poczta DOT onet DOT pl> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Memory leaks ? |
| In-Reply-To: | <9crage$5td$2@info.cyf-kr.edu.pl> |
| Message-ID: | <Pine.SUN.3.91.1010503132241.613E-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Thu, 3 May 2001, Rafal Maj wrote:
> Is ther any easy method (functions in DJGPP C++, I don't want to use
> debugger) to check if all memory that were allocated, was correctly freed ?
>
> Something like :
> int main() {
> save_memory_status() // ?
> char *s=new char[1000];
> //...
> bool ok = test_memory_status(); // ?
> if (!ok) { cerr<<"Memory leaked !"<<endl; }
> return 0;
> }
>
> Maybe ther is some library for doing this ?
Check out YAMD, Fortify and MSS mentioned in section 22.4 of the DJGPP
FAQ list.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |