Memory leak hunting tools
So what is everyone''s favorite memory leak hunting tool? I''m looking to get one and I hear that GreatCircle is the best (and costs a whopping $1500 for a Windows 2000 platform license). Here is a web site listing others...
http://www.mozilla.org/performance/tools.html
I should also ask, does anyone know if Visual Studio .Net comes with some kind of memory leak hunter tool?
look at _CrtDumpMemoryLeaks() in MSDN. Also other functions in the <crtdbg.h> file. These come with MSDN and are useful (to a point).
Why not write it yourself?
Its quite easy to overload the new/delete operators and keep a list of allocated memory blocks, and dump out the unreleased blocks at quit time.
I''ve done this before and it founds leaks the BoundsChecker missed.
Its quite easy to overload the new/delete operators and keep a list of allocated memory blocks, and dump out the unreleased blocks at quit time.
I''ve done this before and it founds leaks the BoundsChecker missed.
Another commercial package you might look into is Insure++ from Parasoft. I''ve used it for about 1 1/2 years now on both Sun/SPARC and Windows 2000 platforms. I been rather satisfied with it.
I used HeapAgent for a little while, and it was perfect... until it mysteriously stopped working altogether, and the technical support had no idea. So I would recommend using it as a free trial download (if they still have that option) while you fix your bugs, but not to pay for it.
[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files ]
[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files ]
Hmm, I notice the double post in flipcode too.
Anyway, for the benefit of those here.
Memory Validator
http://www.softwareverify.com/index.html
Anyway, for the benefit of those here.
Memory Validator
http://www.softwareverify.com/index.html
Does anyone know of a leak detector that will detect memory leaks in video memrory (i''m using Direct3D)?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement