I've been using VLD for years (the original version) and recently I've migrated to VS2010.
I have tried very simple program to check my new installation:
char* p = (char*)std::malloc(10);
Under Visual Studio 2008, the obvious leak is being detected:
---------- Block 0 at 0x016C5D98: 10 bytes ----------
g:\workshop\testcpp\testcpp2008\testcpp2008.cpp (6): main
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (586): __tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): mainCRTStartup
0x7654ECCB (File and line number not available): BaseThreadInitThunk
0x76FBD24D (File and line number not available): RtlCreateUserProcess
0x76FBD45F (File and line number not available): RtlCreateProcessParameters
CD CD CD CD CD CD CD CD CD CD ........ ........
Visual Leak Detector detected 1 memory leak.
However, under Visual Studio 2010 nothing is detected:
No memory leaks detected.
Visual Leak Detector is now exiting.
In both cases, I have tried Debug builds certainly.
I have tried both VLD versions, old 1.9h from Dan Moulding's
page and the new 2.0b from vld.codeplex.com. In all cases I use default configuration, no custom changes applied.
Am I doing any silly mistake here?