mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 14:20:10 +00:00
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 );
|
||||
#endif
|
||||
|
||||
#if defined( DEBUG )
|
||||
// undo wxwidgets trying to hide errors
|
||||
SetErrorMode( 0 );
|
||||
#else
|
||||
SetErrorMode( SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX );
|
||||
#endif
|
||||
|
||||
#if defined( _MSC_VER )
|
||||
// ensure the WER crash report dialog always appears
|
||||
|
Loading…
Reference in New Issue
Block a user