KindDragon / vld

Visual Leak Detector for Visual C++ 2008-2015
https://kinddragon.github.io/vld/
GNU Lesser General Public License v2.1
1.01k stars 314 forks source link

Can Qt use VLD? #41

Open aCrazyCoder opened 6 years ago

aCrazyCoder commented 6 years ago

I'm trying to use VLD on Qt5.9.1 for windows! Microsoft Visual C++ Compiler 14.0 (amd64). But it always causes abnormal exits of the program. I don't clear up what's going on.

silverqx commented 3 years ago

I'm trying it now and if I include <QDebug> in the simple hello world project, then the application crashes.

I'm trying it with the MSVC 16.9.4 x64.

After I comment out #include <QDebug> VLD works great.

Does anyone know what can cause this? The best scenario would be that it is caused by some compiler or linker flag.

silverqx commented 3 years ago

If I try to run with a debugger, then the debugger catches the exception and shows me up a little info where the problem raised, it is in the utility.cpp@429 in the FindRealCode function:

vld_with_qt

I think some VLD master might have an approximate idea of what is up 🤔