Hello. I'm making a library, compile it to a dll and then use the dll in a different application that I also compile. Both projects are build in debug mode and when I run the application via Visual Studio (compile it) it works perfectly. When I run the application alone from the Visual Studio IDE it crashes randomly. Sometimes it crashes after I close it sometimes it crashes on startup.The weird part is that I cant debug it even if when it crashes I try to select Visual Studio as the debugger. All I get is "a heap has been corrupted". Any idea how to get more information on the crash when I run the application standalone from the Visual Studio IDE ?
I also tried to run the application in WinDBG and works just fine.