Set SetErrorMode on Debug build
This commit is contained in:
parent
d653484d72
commit
d3ca857af7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue