Sign in to follow this  

tool for finding memory leaks

This topic is 2841 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Are there any good, free tools for finding memory leaks? I am using Code::Blocks with Windows Vista (32bit). I think it uses Mingw. I'd prefer to avoid cluttering up my code with macros that globally override new or whatever. Especially since one of the libraries I'm using employs a custom allocator, so a simplistic approach would probably fail to catch all cases. Also, if I am looking for memory leaks, would it be better to test under debug build or release? I assume the later.

Share this post


Link to post
Share on other sites
Hi storyteller:

I have found a web where there are several tools for this kind of test.
http://stackoverflow.com/questions/413477/is-there-a-good-valgrind-substitute-for-windows

Quote:

Also, if I am looking for memory leaks, would it be better to test under debug build or release? I assume the later.


No, you should test it against both builds, but more on the debug build, because it has debugging symbols that let you spot leaks easier.

Share this post


Link to post
Share on other sites

This topic is 2841 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this