demo of wxYield() bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2000-02-15 14:48:06 +00:00
parent 409c4ffddd
commit 1171c29741

View 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.");