Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
acbbc4e1
Commit
acbbc4e1
authored
Sep 10, 2019
by
Martin Heistermann
Browse files
Windows: Use SetErrorMode() to get notification on crashes which can otherwise be silent
parent
7b23318e
Changes
1
Hide whitespace changes
Inline
Side-by-side
OpenFlipper.cc
View file @
acbbc4e1
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment