Original: https://vld.codeplex.com/
Visual Leak Detector is a memory leak detection tool dedicated to Visual C + +, which is free, open source, and highly robust.
VLD is easy to use:
1. After installing VLD, just tell Visual C + + where to find its header files and libraries. (: https://vld.codeplex.com)
2. You can then use VLD by adding the following line of code to your C + + project:
#include <vld.h>
Your project runs in Visual Studio debug mode, and after the run finishes, visual Leak detector prints the report of the memory leak. The memory leak report contains the full call stack, and the memory size is not freed. Double-click on the call line where you can jump to the corresponding line of code.
This is an efficient way to quickly diagnose and fix memory leaks.
The main difference between the CRT debug library and the VLD is that the Visual Leak Detector complete the call stack that shows the memory leak.
Here is an example of a VLD print memory leak report:
---------- Block 1199 at 0x04BE1058: 136 bytes ----------
Call Stack:
d:\Foobar\FooLog.cpp (26): FooLog::getInstance
d:\Foobar\FooMain.cpp (75): FooMain::init
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): __tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): WinMainCRTStartup
0x759A3677 (File and line number not available): BaseThreadInitThunk
0x770C9D42 (File and line number not available): RtlInitializeExceptionChain
0x770C9D15 (File and line number not available): RtlInitializeExceptionChain
Data:
9C 33 2D 6B 74 2A 2D 6B C8 11 BE 04 00 00 00 00 .3-kt*-k ........
00 00 00 00 70 14 BB 6C 70 14 BB 6C 00 00 00 00 ....p..l p..l....
00 00 00 00 68 14 BB 6C 68 14 BB 6C 00 00 00 00 ....h..l h..l....
00 00 00 00 6C 14 BB 6C 6C 14 BB 6C 20 12 BE 04 ....l..l l..l....
00 00 00 00 CD 00 CD CD 00 00 00 00 01 CD CD CD ........ ........
68 14 BB 6C 78 33 2D 6B 00 00 00 00 00 00 00 00 h..lx3-k ........
00 00 00 00 01 02 00 00 06 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 88 11 BE 04 5C 10 BE 04 ........ ....\...
00 00 00 00 20 CD CD CD ........ ........
This software is provided ' as is ' without warranty of any kind.
The project was originally developed by Dan Moulding, but they is no longer supported. Features of version 2.0 is implemented by Arkadiy Shapkin (Me).
Links
- Visual Leak Detector Previous official homepage http://sites.google.com/site/dmoulding/vld
- CodeProject article:visual Leak detector-enhanced Memory Leak Detection for Visual C + +
- Finding Memory Leaks Using the CRT Library
- Visual Leak detector:investigate Memory Leaks in Visual C + +
Last edited -Jan at 9:00am by Kinddragon, version
VLD (visual Leak Detector) memory leak Detection Tool, Visual C + + 2008-2015