// global vars
// ----------------------------------------------------------------------------
-wxApp * WXDLLEXPORT wxTheApp = NULL;
+WXDLLEXPORT wxApp *wxTheApp = NULL;
wxAppInitializerFunction
wxAppBase::m_appInitFn = (wxAppInitializerFunction)NULL;
{
public:
virtual int OnRun() { wxFAIL_MSG(wxT("unreachable")); return 0; }
+ virtual bool ProcessIdle() { return TRUE; }
};
// ----------------------------------------------------------------------------
abort();
}
-// Yield to other apps/messages
-bool WXDLLEXPORT wxYield()
-{
- // do nothing
- return TRUE;
-}
-
// Yield to other apps/messages
void WXDLLEXPORT wxWakeUpIdle()
{
return FALSE;
}
+ wxTheApp->DoInit();
gs_nInitCount++;
return TRUE;
// continuing to use user defined log target is unsafe from now on because
// some resources may be already unavailable, so replace it by something
// more safe
- wxLog *oldlog = wxLog::SetActiveTarget(new wxLogStderr);
- if ( oldlog )
- delete oldlog;
+ wxLog::DontCreateOnDemand();
+ delete wxLog::SetActiveTarget(new wxLogStderr);
#endif // wxUSE_LOG
wxModule::CleanUpModules();
// delete the application object
delete wxTheApp;
wxTheApp = (wxApp *)NULL;
+
+#if wxUSE_LOG
+ // and now delete the last logger as well
+ delete wxLog::SetActiveTarget(NULL);
+#endif // wxUSE_LOG
}