From: Vadim Zeitlin Date: Tue, 15 Feb 2000 14:48:06 +0000 (+0000) Subject: demo of wxYield() bug X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1171c297410141144daa6fa2cade5e2b501ddb93 demo of wxYield() bug git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 61fe0daccd..5289c6a711 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -233,9 +233,10 @@ void MyFrame::LogDialog(wxCommandEvent& event) wxLogMessage("This is some message - everything is ok so far."); wxLogMessage("Another message..."); wxLogWarning("And then something went wrong!"); + // if we have this wxYield() here, everything breaks under GTK + wxYield(); wxLogError("Intermediary error handler decided to abort."); wxLogError("The top level caller detected an error."); - wxLog::FlushActive(); wxLogMessage("And this is the same dialog but with only one message.");