Archived

This topic is now archived and is closed to further replies.

Ozguxxx

Memory leak

Recommended Posts

I wonder if there is a freeware program which logs memory leaks of a specific program. Do you know anything like this? For example it chekcs the heap of the specified program and logs amount of usage of it into a text file... Thank you.

Share this post


Link to post
Share on other sites
Look into overloading the new and delete operators. While great care should be taken when doing it, it can provide a fairly 'simple' way of logging everything your program allocates and deallocates during run time.

HTH

[edited by - SysOp_1101 on August 13, 2002 4:10:21 AM]

Share this post


Link to post
Share on other sites
Depends on the OS and the compiler.

Linux has some free software that is meant to do what you want, but I have never used.

This link shows you how to activate the checks in VC++
http://www.math.ucla.edu/~anderson/UsingVCPP/LeakChecking.html

Share this post


Link to post
Share on other sites