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

Application fails to run when linked to VLD #74

Open oneeyeman1 opened 3 years ago

oneeyeman1 commented 3 years ago

Hi, I'm working on the application which unfortunately have memory leaks. The application contains one executable and a couple of DLLs. I downloaded the latest release of VLD and installed it in the default location.

Then I included the vld.h in the main executable source code and added linking to the vld.lib.

I then copied the actual DLLs from the bin/Win32 to the folder where my application is. I am working under Windows 8.1 64-bit but my application is 32-bit. Then I tried to run the application in Debug mode.

I got the following error:

The application was unable to start correctly. Click OK to close the application.

Clicking "OK" gives me following inside MSVC 2019:

Unhandled exception at 0x77CBD452 (ntdll.dll) in docview.exe: 0xC0150002: Windows was not able to process the application binding information. Please refer to your System Event Log for further information.

Trying to copy DLLs from bin\Win64 does not make any differences.

I can give you the link to the GitHub repository and instructions on how to reproduce the crash.

Or maybe I am doing something wrong?

Thank you.