Set SetErrorMode on Debug build

This commit is contained in:
Marek Roszko 2022-03-11 20:50:47 -05:00
parent d653484d72
commit d3ca857af7
1 changed files with 4 additions and 0 deletions

View File

@ -42,8 +42,12 @@ bool KIPLATFORM::APP::Init()
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF ); _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF );
#endif #endif
#if defined( DEBUG )
// undo wxwidgets trying to hide errors // undo wxwidgets trying to hide errors
SetErrorMode( 0 ); SetErrorMode( 0 );
#else
SetErrorMode( SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX );
#endif
#if defined( _MSC_VER ) #if defined( _MSC_VER )
// ensure the WER crash report dialog always appears // ensure the WER crash report dialog always appears