_CRT_DEBUGGER_HOOK throws an exception

I had a problem converting my program from VS2005 to VS2008. When I run the program in VS2008, the application starts up fine, but when you start playing next to the application with which it crashes, it gave me this error:

"Microsoft Visual Studio C Runtime Library detected a fatal error"

And then the debugger points me to this function:

__declspec(noinline)
void __cdecl _CRT_DEBUGGER_HOOK(int _Reserved)
{
/* assign 0 to _debugger_hook_dummy so that the function is not folded
in retail */
(_Reserved);
_debugger_hook_dummy = 0;
}

compiling the ase release application works prefect ...

By the way, this is native code that calls managed C ++ code that wraps .NET code.

How can I debug this situation?

Ofer

+5
source share
1 answer

, VS2008.

VS2008-debug DLL, VS2003, VS2008-debug , .

+3

All Articles