-#ifdef WIN32
-#include <windows.h>
-#endif
#include <signal.h>
-#include <typeinfo>
-#include <msp/debug/demangle.h>
#include <msp/io/print.h>
#include "application.h"
#include "getopt.h"
{
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;
}