X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fapplication.cpp;h=36621e92ae99af9b74a2726263fd3b8176cbd020;hp=51f013e72c3cb5876429035d2604c95eb1a1f578;hb=609c9a508cfdc7b42c46c4f21d17639204165a00;hpb=b4806214e905752617691f851717033fd3f266c2 diff --git a/source/core/application.cpp b/source/core/application.cpp index 51f013e..36621e9 100644 --- a/source/core/application.cpp +++ b/source/core/application.cpp @@ -1,9 +1,4 @@ -#ifdef WIN32 -#include -#endif #include -#include -#include #include #include "application.h" #include "getopt.h" @@ -68,14 +63,7 @@ int Application::run(int argc, char **argv, void *data) { delete app_; -#ifdef WIN32 - string msg = Debug::demangle(typeid(e).name())+":\n"+e.what(); - MessageBoxA(0, msg.c_str(), "Uncaught exception", MB_OK|MB_ICONERROR); -#else - IO::print(IO::cerr, "An uncaught exception occurred.\n"); - IO::print(IO::cerr, " type: %s\n", Debug::demangle(typeid(e).name())); - IO::print(IO::cerr, " what(): %s\n", e.what()); -#endif + display_exception(e); return 124; }