MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / runEventLoop

Function runEventLoop

src/Gui/Application.cpp:2614–2635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2612}
2613
2614void 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
2638void Application::runApplication()

Callers 1

runApplicationMethod · 0.85

Calls 4

tryRunEventLoopFunction · 0.85
messageMethod · 0.45
errorMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected