Saturday, February 19, 2011

Memory leak detection under Windows for GNU C/C++

What memory leak detection tools are available for use with open source C/C++ on Windows?

From stackoverflow
  • WinDbg is always a good choice for any program open or closed.

  • DebugDiags

  • LeakDiag. Quite hard to find nowadays, but available here. You might also like to get LDGrapher, available in the same place.

  • I've been using VLD (Visual Leak Detector) for some times, it works nicely for good code, for more complex code; it's not perfect.

    Chris Morley : Newer version at author's home page: http://dmoulding.googlepages.com/vld
    Rob Kam : From the documentation: It is designed specifically for use with Visual C++, and it depends on heap debugging functions found only in Microsoft's C runtime library.
  • The mem package is an effective and straightforward tool to detect memory buffer overflows, underflows, leaks, double-deletion, and dangling references.

0 comments:

Post a Comment