X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/265db88d614412556eaf6671f442ca44d9f19b70..48271822ef3d56c8f91af882b68fd1b674a8e8e6:/src/common/init.cpp?ds=sidebyside diff --git a/src/common/init.cpp b/src/common/init.cpp index bb5693e4a9..639a614add 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -220,6 +220,9 @@ static void FreeConvertedArgs() static bool DoCommonPreInit() { #if wxUSE_LOG + // Reset logging in case we were cleaned up and are being reinitialized. + wxLog::DoCreateOnDemand(); + // install temporary log sink: we can't use wxLogGui before wxApp is // constructed and if we use wxLogStderr, all messages during // initialization simply disappear under Windows