Code:
int _debugger_hook_dummy; #ifdef _M_IA64 #undef _CRT_DEBUGGER_HOOK #define _CRT_DEBUGGER_HOOK __crt_debugger_hook #endif /* _M_IA64 */ __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; //the break point was here }
Thanks.