Set SetErrorMode on Debug build

(cherry picked from commit d3ca857af7)
This commit is contained in:
Marek Roszko 2022-03-11 20:50:47 -05:00 committed by Mark Roszko
parent 187aa1c171
commit ae01dc8ef1
1 changed files with 4 additions and 0 deletions

View File

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