Fixes Bug [ 930200 ] Async does not work

Because the wxConsoleAppTraits was being created for GUI apps
wxExecute would fail if the wxEXEC_ASYNC flags was used.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-04-27 20:02:41 +00:00
parent 95561ddfc3
commit bc334f39ec

View File

@ -109,6 +109,13 @@ wxAppConsole::wxAppConsole()
#ifdef __WXDEBUG__
SetTraceMasks();
#if wxUSE_UNICODE
// In unicode mode the SetTraceMasks call can cause an apptraits to be
// created, but since we are still in the constructor the wrong kind will
// be created for GUI apps. Destroy it so it can be created again later.
delete m_traits;
m_traits = NULL;
#endif
#endif
}