Use own signal handler only on Windows with MSVC
This commit is contained in:
parent
e432930f21
commit
0f6365ee4a
|
@ -941,10 +941,12 @@ void Application::init(int argc, char ** argv)
|
|||
#endif
|
||||
// if an unexpected crash occurs we can install a handler function to
|
||||
// write some additional information
|
||||
#ifdef _MSC_VER // Microsoft compiler
|
||||
std::signal(SIGSEGV,segmentation_fault_handler);
|
||||
std::signal(SIGABRT,segmentation_fault_handler);
|
||||
std::set_terminate(unhandled_exception_handler);
|
||||
std::set_unexpected(unexpection_error_handler);
|
||||
#endif
|
||||
|
||||
initTypes();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user