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);
WX_SUPPRESS_UNUSED_WARN(cleanupOnExit);
-#if defined(__VISUALC__)
- //Disable warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
- #pragma warning (disable:4530)
-#endif
-
wxTRY
{
-#if defined(__VISUALC__)
- #pragma warning (default:4530)
-#endif
// app initialization
if ( !wxTheApp->CallOnInit() )
{