Quantcast
Channel: Visual Leak Detector for Visual C++ 2008-2015
Viewing all articles
Browse latest Browse all 704

Commented Unassigned: [vld v2.4rc2] Crash on startup [10563]

$
0
0
KingDragon, thanks for the efforts.

I'm using VS2013.
I just installed the last version v2.4rc2 (I had the last stable release installed before but I realized recently that it wasn't working anymore since I switched to VS2013).
I cleaned all my project in all modes, then compiled it in Debug 32 bits.
The only code I didn't recompile was boost libraries but I don't know if that might be related.

My solution have several executables (client & server, tests) that I startup on Debug.
All crashes on startup with a strange error just after the VLD dlls symbols (at least that's what I see in the output).

The error message is "The application was unable to start correctly (0xc0150002)"

Note:
- I will try a small empty project tomorrow, see if it does the same thing;
- I'm using CMake scripts to setup VLD, so if something have changed on the install, maybe it's related;
- The installer might have done something because I had a previous version of VLD and it asked if I wanted to uninstall before, I said yes.
Comments: Here is how I injected VLD in my projects in CMake so far. Maybe something have changed with v2.4rc2 and I don't see it: ``` # Macro to inject memory leak detection if available. macro( NetRush_MemoryLeakDetection ) if( MSVC AND NETRUSH_VLD_ENABLED ) set( VLD_ROOT "C:/Program Files (x86)/Visual Leak Detector" ) if( EXISTS ${VLD_ROOT} ) DebugLog( "Injecting Visual Leak Detector hooks..." ) if( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set( VLD_LIB_DIR ${VLD_ROOT}/lib/Win64 ) else( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set( VLD_LIB_DIR ${VLD_ROOT}/lib/Win32 ) endif() set( VLD_INCLUDE_DIR ${VLD_ROOT}/include ) set( VLD_INJECTION_SOURCE ${NETRUSH_PROJECTS_SOURCES_DIR}/special/vld.cpp ) set( ARG_SOURCES ${ARG_SOURCES} ${VLD_INJECTION_SOURCE} ) source_group( "\\_special" FILES ${VLD_INJECTION_SOURCE} ) include_directories( ${VLD_INCLUDE_DIR} ) link_directories( ${VLD_LIB_DIR} ) endif() endif() endmacro() ```

Viewing all articles
Browse latest Browse all 704

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>