Take the 2-minute tour ×

I have just started using Visual Leak Detector for Visual C++ 2008/2010

When i run it on small app (just few line with undeleted allocations) it works just fine.

Now I want to run it into my bigger app (wxWidgets app, 2 threads), but when I include

#include <vld.h>

my app does not completely start up. It starts cycling when Gui is created. Somethimes app load completely, but again, stuck when I for example press some button...

When I hit pause button, to see which code is being processed I see just

stack: ntdll, kernel...

Is anybody run into similar problem?

Is there any way to make it work?

share|improve this question
Have you tried testing it on a simpler 2-thread program? Maybe it has multi-threading issues. Also, if your program is resource-hungry, keep in mind that leak detectors tend to be a major performance hit. You might just be witnessing major slowness (or maybe not). –  Brandon Bohrer Apr 8 '11 at 4:03
@Brandon Bohrer: I have not tried simpler 2threaded program, but I will... It is not just slow start, because some other "lucky" time it start up in few secs. –  relaxxx Apr 9 '11 at 9:15
The call stack contains nvoglv32.dll. Are you sure you're looking at the correct thread? NVidia drivers start up some more threads that do the actual rendering in an OpenGL application. –  vividos Apr 20 '11 at 7:16
You can to use deleaker or similary tool for detect memory leak...fast and easy –  John Smith Dec 21 '11 at 19:54
@JohnSmith thank you John, I will take a look at it –  relaxxx Dec 24 '11 at 22:27
add comment

1 Answer

up vote 1 down vote accepted

Visual Leak Detector makes the App run VERY slowly, be patient.

Are you running a single binary file?

I'v had issues when my program was split into the main executable and libraries loaded on the run.

The solution was to do the #include everywhere, especially the executable.

Note that you can use VLDDisable and VLDEnable if you want to target specific parts of the code, note that these work per thread. Disabling in one thread doesn't modify what goes on in others.

share|improve this answer
add comment

Your Answer


