Commit 79364ed7 authored by Martin Heistermann's avatar Martin Heistermann

Windows: Use SetErrorMode() to get notification on crashes which can otherwise be silent

parent 54f7dbbe
......@@ -73,6 +73,12 @@
#ifdef USE_OPENMP
#endif
#ifdef _WIN32
# include <windows.h>
# include <errhandlingapi.h>
#endif
/* ==========================================================
*
* Stackwalker code. Used to get a backtrace if OpenFlipper
......@@ -655,6 +661,13 @@ QSurfaceFormat getContextFormat()
int main(int argc, char **argv)
{
#ifdef _WIN32
// This make crashes visible - without them, starting the
// application from cmd.exe or powershell can surprisingly hide
// any signs of a an application crash!
SetErrorMode(0); // 0: Use the system default, which is to display all error dialog boxes.
#endif
// Remove -psn_0_xxxxx argument which is automatically
// attached by MacOSX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment