PDA

View Full Version : Memory leak trackers



Darkness
11-30-2004, 11:08 AM
I've been googling around, searching for methods of tracking memory leaks. Right now, I use some special methods found in assert.h in the crt when I allocate/deallocate memory.

I tried searching for an external program* that can check for memory leaks, and the problem isn't that I can't find anything, it's that I have found too many things. I was wondering what is considered, in general, to be the better software for tracking memory leaks.

I am in Windows XP right now, and if it is pertinent I primarily still use Microsoft Visual Studio 6.0 as my development environment.

*I searched at download.com, and google, for 'memory leak', 'memory leak tracker', 'C++ memory leak tracker' and similar terms. Each turned up approximately a bazillion hits for software and/or methods for tracking memory leaks.

vasanth
11-30-2004, 11:10 AM
I use valgrind.. but its for linux.. not sure if a windows port is available...

Salem
11-30-2004, 01:03 PM
A comparison
http://www.cs.utexas.edu/users/jpmartin/memCheckers.html

This is the $$$ one for windows - http://www.compuware.com/products/devpartner/bounds.htm

Thantos
11-30-2004, 01:12 PM
http://linux.maruhn.com/sec/electricfence.html

Darkness
11-30-2004, 01:12 PM
Thanks a bunch, I appreciate it!

MrWizard
11-30-2004, 02:03 PM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vxconenablingmemoryleakdetection.asp