Visual Leak Detector was developed to be a free, robust, open-source memory leak detection system for Visual C++.
It's pretty easy to use. After installing it, you just need to tell Visual C++ where to find the included header and library file. Then it can be used with any C/C++ project simply by adding the following line to your code:
#include
When you run your program under the Visual Studio debugger, Visual Leak Detector will output a memory leak report at the end of your debugging session. The leak report includes the full call stack showing how any leaked memory blocks were allocated.
Double-click on a line in the call stack to jump to that file and line in the editor window. It's a very effective way to quickly diagnose, and fix, memory leaks in C/C++ applications.
Here are some key features of "Visual Leak Detector":
· Provides a complete stack trace for each leaked block, including source file and line number information when available.
· Detects most, if not all, types of in-process memory leaks including COM-based leaks, and pure Win32/Win64 heap-based leaks.
· Selected modules (DLLs or even the main EXE) can be excluded from leak detection.
· Provides complete data dumps (in hex and ASCII) of leaked blocks.
· Customizable memory leak report: can be saved to a file or sent to the debugger and can include a variable level of detail.
Requirements:
· Visual C++
What's New in This Release: [ read full changelog ]
Enhancements:
· New functions added: VLDGetLeaksCount, VLDMarkAllLeaksAsReported, VLDSetReportHook (see vld.h).
· Introduced define called VLD_FORCE_ENABLE that allows one to active VLD even if not running in DEBUG.
· Adding Heap Validation.
· aligned... functions and _recalloc support added.
· Memory leaks additional statistic added.
Bugs Fixed:
· Issue fixed with loading wrong version of dbghelp.dll on Windows XP and bellow.
· VLDReportLeaks with aggregate duplicate links fixed.
· CoTaskMemAlloc memory leak detection fixed.
· Rare crash at exit on some platforms fixed.
· Asserts in release build disabled.
· LoaderLock fixed.
· LoadLibrary crash fixed with some applications like regsrv32.
· Callstack hash fixed with ASLR.
· VLDGlobalEnable fixed with new threads.
· Option VLD_OPT_MODULE_LIST_INCLUDE fixed.
· Resolved callstack printing fixed.