Skip to content

Commit b57adb8

Browse files
author
nitrocaster
committed
Disable 'appname has stopped working' popup dialog.
1 parent bcdfc3d commit b57adb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/xrCore/xrDebug.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ void WINAPI xrDebug::PreErrorHandler(INT_PTR)
338338

339339
void xrDebug::SetupExceptionHandler(const bool &dedicated)
340340
{
341+
// disable 'appname has stopped working' popup dialog
342+
UINT prevMode = SetErrorMode(SEM_NOGPFAULTERRORBOX);
343+
SetErrorMode(prevMode|SEM_NOGPFAULTERRORBOX);
341344
BT_InstallSehFilter();
342345
if (!dedicated && !strstr(GetCommandLine(), "-silent_error_mode"))
343346
BT_SetActivityType(BTA_SHOWUI);

0 commit comments

Comments
 (0)