]> git.saurik.com Git - wxWidgets.git/commitdiff
demo of wxYield() bug
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 Feb 2000 14:48:06 +0000 (14:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 Feb 2000 14:48:06 +0000 (14:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialogs/dialogs.cpp

index 61fe0daccde4cd2f4b51967aca7e7bfa0e75e12d..5289c6a711932bc41d267c328c38f8a09de6fe72 100644 (file)
@@ -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.");