...
 
......@@ -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
......