This project has moved. For the latest updates, please go here.
1
Vote

The change of Microsoft.Cpp.x64.user.props by the installation breaks my build

description

I installed the VLD and found that the file Microsoft.Cpp.x64.user.props was completely changed. Previously it was like
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup />
<ItemGroup />
</Project>

After the installation, I found it was changed to
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemDefinitionGroup><ClCompile><AdditionalIncludeDirectories>C:\Program Files (x86)\Visual Leak Detector\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories></ClCompile><Link><AdditionalLibraryDirectories>C:\Program Files (x86)\Visual Leak Detector\lib\Win64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories></Link><Lib><AdditionalLibraryDirectories>C:\Program Files (x86)\Visual Leak Detector\lib\Win64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories></Lib></ItemDefinitionGroup></Project>
I found this change makes my project unable to compile any more. If I reverted it back to the original version, it could compile again. Then I manually added the include path in the project property window, and it still could compile, however, the output window in visual studio displayed the following message, and there is nothing in the output file describing the memory leak information. Note that I updated the library using the changes in https://github.com/ioannis-e/vld/commit/48d9fef04a3117747c594afaf3036105713323d3

Exception thrown at 0x000007FEFD04A06D in xxx.exe: Microsoft C++ exception: EEMessageException at memory location 0x00000000005CC8C0.
Exception thrown at 0x000007FEFD04A06D (KernelBase.dll) in NanoNavigator.Main.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131524, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x000007FEF82D0000).

I also tried to combine the original contents in Microsoft.Cpp.x64.user.props and the contents after installing VLD, it didn't help either.

Any suggestions are appreciated!

comments