| 2612 | } |
| 2613 | |
| 2614 | void runEventLoop(GUISingleApplication& mainApp) |
| 2615 | { |
| 2616 | try { |
| 2617 | tryRunEventLoop(mainApp); |
| 2618 | } |
| 2619 | catch (const Base::SystemExitException&) { |
| 2620 | Base::Console().message("System exit\n"); |
| 2621 | throw; |
| 2622 | } |
| 2623 | catch (const std::exception& e) { |
| 2624 | // catching nasty stuff coming out of the event loop |
| 2625 | Base::Console().error("Event loop left through unhandled exception: %s\n", e.what()); |
| 2626 | App::Application::destructObserver(); |
| 2627 | throw; |
| 2628 | } |
| 2629 | catch (...) { |
| 2630 | // catching nasty stuff coming out of the event loop |
| 2631 | Base::Console().error("Event loop left through unknown unhandled exception\n"); |
| 2632 | App::Application::destructObserver(); |
| 2633 | throw; |
| 2634 | } |
| 2635 | } |
| 2636 | } // namespace |
| 2637 | |
| 2638 | void Application::runApplication() |
no test coverage detected