#endif
#include <stdlib.h>
+#include <stdio.h>
#include <simgear/compiler.h>
#include <simgear/structure/exception.hxx>
// disabled.
cerr << "Fatal error: " << t.getFormattedMessage()
<< "\n (received from " << t.getOrigin() << ')' << endl;
- exit(1);
+ } catch (...) {
+ cerr << "Unknown exception in the main loop. Aborting..." << endl;
+ perror("Possible cause");
}
return 0;