- virtual int OnRun(void) { return MainLoop(); };
- virtual int OnExit(void) { return 0; };
- inline void SetPrintMode(int mode) { m_printMode = mode; }
- inline int GetPrintMode(void) const { return m_printMode; }
-
- inline void SetExitOnFrameDelete(bool flag) { m_exitOnFrameDelete = flag; }
- inline bool GetExitOnFrameDelete(void) const { return m_exitOnFrameDelete; }
-
-/*
- inline void SetShowFrameOnInit(bool flag) { m_showOnInit = flag; }
- inline bool GetShowFrameOnInit(void) const { return m_showOnInit; }
-*/
-
- inline wxString GetAppName(void) const {
- if (m_appName != "")
+ virtual int OnRun() { return MainLoop(); };
+ virtual int OnExit() { return 0; }
+
+ // called when a fatal exception occurs, this function should take care not
+ // to do anything which might provoke a nested exception!
+ virtual void OnFatalException() { }
+
+ void SetPrintMode(int mode) { m_printMode = mode; }
+ int GetPrintMode() const { return m_printMode; }
+
+ void SetExitOnFrameDelete(bool flag) { m_exitOnFrameDelete = flag; }
+ bool GetExitOnFrameDelete() const { return m_exitOnFrameDelete; }
+
+ const wxString& GetAppName() const {
+ if (m_appName != _T(""))