use wxLogBuffer to ensure that we don't lose error messages during initialization; only switch to wxLogGui when it's really safe to use it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-06-06 23:36:53 +00:00
parent d3fc175515
commit 1c7b2f0199
2 changed files with 26 additions and 9 deletions

View File

@@ -142,14 +142,6 @@ wxAppConsole::~wxAppConsole()
bool wxAppConsole::Initialize(int& argc, wxChar **argv)
{
#if wxUSE_LOG
// If some code logged something before wxApp instance was created,
// wxLogStderr was set as the target. Undo it here by destroying the
// current target. It will be re-created next time logging is needed, but
// this time wxAppTraits will be used:
delete wxLog::SetActiveTarget(NULL);
#endif // wxUSE_LOG
// remember the command line arguments
this->argc = argc;
this->argv = argv;