I installed without a problem. I created a dummy bare-bones 64-bit console application using VS2013 on Windows7. I added only three lines to the main program file created by the wizard. The resulting code looks like this:
// TestVLD.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <vld.h>
int _tmain(int argc, _TCHAR* argv[])
{
char *testLeak = new char[1000000];
testLeak = nullptr;
return 0;
}
When I run in the debugger, the PDB files for the main program load fine, but there are a bunch of "Cannot find or open the PDB file" messages pertaining to MS built-in OS files in C:\Windows\System32. After those messages, the only report I get from VLD is the following:
Visual Leak Detector Version 2.3 installed.
No memory leaks detected.
Visual Leak Detector is now exiting.
The program '[7840] TestVLD.exe' has exited with code 0 (0x0).
I would have thought that VLD would have no problem detecting that blatant memory leak. What am I doing wrong?
↧