KindDragon / vld

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

win10,VS2017,C# call C++/CLI crash #39

Open JiaoJianing opened 6 years ago

JiaoJianing commented 6 years ago

I used vld on win10,vs2017. I tested vld in a pure c++ project and it worked well. Then I created a simple C++/CLI DLL project and include in a .cpp file,just like this: .h: public ref class CLIClass { public: CLIClass(){} ~CLIClass(){} static void test(); }; .cpp:

include

include "CLIClass.h"

void CLIClass::test() { int * a = new int; } Then I created a WPF application, in MainWindow_Loaded I called CLIClass.test(); I compile the project and run it, but it crashed!

I tried copy dbghelp.dll、vld_x86.dll、Microsoft.DTfW.DHL.manifest to run folder,but it still crashed...

NumperCoder commented 4 years ago

I has the same problem,is there a solution