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

Visual studio 2017 integration #58

Open JamieShelley opened 5 years ago

JamieShelley commented 5 years ago

Hi, is it possible to get a vs17 integration started, I don't mind contributing. Thanks, Jamie

lzzy12 commented 5 years ago

Same, I also need that

technomagos commented 5 years ago

Managed to build vld with only a few small code changes for VS17, but it does not work. Also, when running from within the VS debugger, I get crashes right away.

Would so appreciate some help from the key developers to make this work for vs 2017

lzzy12 commented 5 years ago

Well it works out of the box for me dude on VS17. Didn't have to build it from source.. Just used the prebuilt for VS15

imtrobin commented 5 years ago

Crash on startup with vs2017 15.9.4

olegkrivtsov commented 5 years ago

The same thing - it crashes when starting leak detection. I replaced dbghelp.dll with the newest one from Windows SDK 10, and that seemed to help.

FrankStain commented 5 years ago

Investigating the problem of support VC++2019 by VLD, i had found very interesting link. The solution itself is terrible as for me, but overall path of solution looks like right direction.

So i decided to start working with dbghelp.dll file. I decided to change the library for my installed version of VLD. Since i use VC++2019, i found valid dbghelp.dll file in ...\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\TestPlatform\Extensions\Cpp folder. Fortunately, the x64 version is placed near the 32-bit version of this library. Just inside of x64 subfolder. I had copied the both libraries into my VLD installation folder. After that my VLD had started to work normally. I guess that the right dbghelp.dll library should be found inside ...\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions\Cpp folder of VC++2017. But i can't check it due to lack of C++2017 installed.

BTW, i definitely know that my attempts isn't proper porting of VLD. So, @KindDragon , can you somehow instruct us to be able to properly port the VLD for VC++2017 and VC++2019? Some wiki article would be very welcome, i think.