Visual C++ - Memory Leak Detection

17,670

Solution 1

I've used Visual Leak Detector quite recently and it works pretty well. It's very simple to build it in (just include vld.h) and doesn't require any instrumentation. I found that I needed to write a couple of scripts though to parse the output into something more useful for my purposes (it is crying out for a decent GUI). Note the new website -- the project is being actively maintained on Codeplex -- the Codeproject link is very old.

Solution 2

Try Deleaker or DevPartner, these both are good enough.

update:

C++ Memory Validator, works fine and fairly priced.

Solution 3

If you can afford some money use the Intel Parallel Inspector (http://software.intel.com/en-us/intel-parallel-inspector).

It doesn't require any code modifications and provides good reports.

I had to look for good tools to do that in work and that's the best tool (by far) that I found.

Solution 4

As suggested by Noah Roberts, i too felt Memory validator as the best tool for detecting leaks in Visual studio.

Purify also works.

Share:
17,670

Related videos on Youtube

Harsh Pathak
Author by

Harsh Pathak

Some answers I like: How can I determine distance from an object in a video? Problem with Precision floating point operation in C Bounding ellipse Transforming captured co-ordinates into screen co-ordinates How to use SIFT algorithm to compute how similiar two images are? Shortest path to transform one word into another Skewing an image using Perspective Transforms Code Golf: Build Me an Arc Plotting Bessel function in MATLAB Incrementing values in a sparse matrix takes very long NB: The first person to get a computer-vision & opencv badge :)

Updated on April 21, 2022

Comments

  • Harsh Pathak
    Harsh Pathak about 2 years

    Any suggestions? This SO post talks about Visual Leak Detector, but I'm looking for other tools. Also, please don't recommend this.

    • john ktejik
      john ktejik over 11 years
      I like how at the top of the Microsoft page, it says: This applies to: Visual studio express: NO standard: NO Pro: NO Meaning it applies to nothing
  • TarmoPikaro
    TarmoPikaro over 4 years
    Updated link. But haven't touched that project for a long time.