Commit 6dc57835 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'windows-error-dialogs' into 'master'

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

See merge request !173
parents f377af8d acbbc4e1
......@@ -73,6 +73,12 @@
#ifdef _WIN32
# include <windows.h>
# include <errhandlingapi.h>
/* ==========================================================
* 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.
// Remove -psn_0_xxxxx argument which is automatically
// attached by MacOSX
Supports Markdown
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