KindDragon/vld

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

JiaoJianing opened this issue · 1 comments

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 <vld.h> in a .cpp file,just like this:
.h:
public ref class CLIClass
{
public:
CLIClass(){}
~CLIClass(){}
static void test();
};
.cpp:
#include <vld.h>
#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...

I has the same problem,is there a solution