Visual Leak Detector

Sep 2, 2013 at 9:31 AM
Please some1 tell me how to use VLD ..do not forward links please.. Look , I have added the header file vld.h to my projects header file and then included it to my source .cpp file.. then I have included include directory path and library path and library files to Linker mentioned in the projects properties. I have also added Lib folders and include directories location to Virtual c++ include library and directory folder.. Then I have created a code which contains leak.. But the debugger o/p is:
'LeakCheck.exe': Loaded 'C:\Users\parthkumars\Documents\Visual Studio 2010\Projects\LeakCheck\Release\LeakCheck.exe', Symbols loaded.
'LeakCheck.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'LeakCheck.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'LeakCheck.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'LeakCheck.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Cannot find or open the PDB file
The program '[6300] LeakCheck.exe: Native' has exited with code 0 (0x0).


Please some1 help me.. I have been struggling with this for 2 days now.. Please!!
Oct 31, 2013 at 10:22 AM
Maddy25 wrote:
Please some1 tell me how to use VLD ..do not forward links please.. Look , I have added the header file vld.h to my projects header file and then included it to my source .cpp file.. then I have included include directory path and library path and library files to Linker mentioned in the projects properties. I have also added Lib folders and include directories location to Virtual c++ include library and directory folder.. Then I have created a code which contains leak.. But the debugger o/p is:
'LeakCheck.exe': Loaded 'C:\Users\parthkumars\Documents\Visual Studio 2010\Projects\LeakCheck\Release\LeakCheck.exe', Symbols loaded.
'LeakCheck.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'LeakCheck.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'LeakCheck.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'LeakCheck.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Cannot find or open the PDB file
The program '[6300] LeakCheck.exe: Native' has exited with code 0 (0x0).


Please some1 help me.. I have been struggling with this for 2 days now.. Please!!
add the vld include path, lib path to ur property of the project
and include the "vld.h" in any one of ur cpp files (just for the main module, if u has multiple dlls, include that in each dll).
copy the vldhelp.dll, xxxx.manifest, vld.dll file to ur project's output dir (same as ur .exe file generated by ur code)

it seems that u didn't copy the 3 files to ur output dir.
Nov 25, 2013 at 8:54 AM
This line
 'LeakCheck.exe': Loaded 'C:\Users\parthkumars\Documents\Visual Studio 2010\Projects\LeakCheck\Release\LeakCheck.exe',
tells me that you are bulding the Release version
by Default VLD is only running in Debug version