}
catch(const exception &e)
{
+ delete app_;
+
+#ifdef WIN32
+ string msg=Debug::demangle(typeid(e).name())+":\n"+e.what();
+ MessageBox(0, msg.c_str(), "Uncaught exception", MB_OK|MB_ICONERROR);
+#else
cerr<<"An uncaught exception occurred.\n";
cerr<<" type: "<<Debug::demangle(typeid(e).name())<<'\n';
cerr<<" what(): "<<e.what()<<'\n';
cerr<<" from "<<i->file<<'\n';
}
}
+#endif
- delete app_;
return 124;
}
}