A fatal error under Windows now opens a message box to enable the end-user to look at the console error messages and report them
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3455 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: ece59c080afa7325059c0a21e19dd084e3305711 Former-commit-id: 50c21fc319f201fe1f9d8cf600d6f89afc3ddf5a
This commit is contained in:
parent
1a0399be2d
commit
d4eca12b39
3 changed files with 8 additions and 4 deletions
|
@ -187,8 +187,12 @@ void GfLogFatal(const char *pszFmt, ...)
|
|||
}
|
||||
#endif // TRACE_OUT
|
||||
|
||||
// GfScrShutdown();
|
||||
assert(0);
|
||||
#ifdef WIN32
|
||||
MessageBox(NULL, "Please contact the maintenance team\n"
|
||||
"and notify them about the error messages in the console",
|
||||
TEXT("Fatal error"), MB_OK|MB_ICONERROR|MB_SETFOREGROUND);
|
||||
#endif
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
// If we got here, something bad happened
|
||||
GfLogError("Exiting from Speed Dreams for some fatal reason (see above).\n");
|
||||
GfLogFatal("Exiting from Speed Dreams for some fatal reason (see above).\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
// If we got here, something bad happened
|
||||
GfLogError("Exiting from Speed Dreams for some fatal reason (see above).\n");
|
||||
GfLogFatal("Exiting from Speed Dreams for some fatal reason (see above).\n");
|
||||
exit(1); // If we got here, something bad happened
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue