+ handle also std::exception when application unexpectedly leaves event loop

This commit is contained in:
wmayer 2016-05-13 12:12:17 +02:00
parent 4ba04178ff
commit dd3f85d1a1

View File

@ -1826,6 +1826,12 @@ void Application::runApplication(void)
Base::Console().Message("System exit\n"); Base::Console().Message("System exit\n");
throw; throw;
} }
catch (const std::exception& e) {
// catching nasty stuff coming out of the event loop
App::Application::destructObserver();
Base::Console().Error("Event loop left through unhandled exception: %s\n", e.what());
throw;
}
catch (...) { catch (...) {
// catching nasty stuff coming out of the event loop // catching nasty stuff coming out of the event loop
App::Application::destructObserver(); App::Application::destructObserver();