FreeConvertedArgs();
#endif // wxUSE_UNICODE
- // check for memory leaks
-#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
- if (wxDebugContext::CountObjectsLeft(TRUE) > 0)
- {
- wxLogDebug(wxT("There were memory leaks.\n"));
- wxDebugContext::Dump();
- wxDebugContext::PrintStatistics();
- }
-#endif // Debug
-
+ // Note: check for memory leaks is now done via wxDebugContextDumpDelayCounter
#if wxUSE_LOG
// and now delete the last logger as well
delete wxLog::SetActiveTarget(NULL);
wxTRY
{
+
// app initialization
if ( !wxTheApp->CallOnInit() )
{
~CallOnExit() { wxTheApp->OnExit(); }
} callOnExit;
+ WX_SUPPRESS_UNUSED_WARN(callOnExit);
+
// app execution
return wxTheApp->OnRun();
}