Further changes to make mfctest work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -445,6 +445,15 @@ void wxApp::ConvertToStandardCommandArgs(char* lpCmdLine)
|
||||
void wxApp::CleanUp()
|
||||
{
|
||||
//// COMMON CLEANUP
|
||||
|
||||
// flush the logged messages if any
|
||||
wxLog *pLog = wxLog::GetActiveTarget();
|
||||
if ( pLog != NULL && pLog->HasPendingMessages() )
|
||||
pLog->Flush();
|
||||
|
||||
// One last chance for pending objects to be cleaned up
|
||||
wxTheApp->DeletePendingObjects();
|
||||
|
||||
wxModule::CleanUpModules();
|
||||
|
||||
#if wxUSE_WX_RESOURCES
|
||||
@@ -608,6 +617,9 @@ int wxEntry(WXHINSTANCE hInstance,
|
||||
{
|
||||
retValue = wxTheApp->OnRun();
|
||||
}
|
||||
else
|
||||
// We want to initialize, but not run or exit immediately.
|
||||
return 1;
|
||||
}
|
||||
//else: app initialization failed, so we skipped OnRun()
|
||||
|
||||
@@ -630,12 +642,6 @@ int wxEntry(WXHINSTANCE hInstance,
|
||||
|
||||
wxTheApp->OnExit();
|
||||
|
||||
// flush the logged messages if any
|
||||
wxLog *pLog = wxLog::GetActiveTarget();
|
||||
if ( pLog != NULL && pLog->HasPendingMessages() )
|
||||
pLog->Flush();
|
||||
|
||||
|
||||
wxApp::CleanUp();
|
||||
|
||||
return retValue;
|
||||
|
Reference in New Issue
Block a user