moved OnExceptionInMainLoop() from wxAppConsole to wxAppBase because
1. console apps have no main loop 2. in non-monolithic mingw32 build, rethrowing an exception thrown from the GUI in the base DLL doesn't work git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -372,6 +372,10 @@ void wxAppBase::SetActive(bool active, wxWindow * WXUNUSED(lastFocus))
|
||||
(void)ProcessEvent(event);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// idle handling
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxAppBase::DeletePendingObjects()
|
||||
{
|
||||
wxList::compatibility_iterator node = wxPendingDelete.GetFirst();
|
||||
@@ -463,6 +467,24 @@ void wxAppBase::OnIdle(wxIdleEvent& WXUNUSED(event))
|
||||
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// exceptions support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_EXCEPTIONS
|
||||
|
||||
bool wxAppBase::OnExceptionInMainLoop()
|
||||
{
|
||||
throw;
|
||||
|
||||
// some compilers are too stupid to know that we never return after throw
|
||||
#if defined(__DMC__) || (defined(_MSC_VER) && _MSC_VER < 1200)
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // wxUSE_EXCEPTIONS
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxGUIAppTraitsBase
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user