From 65f06384843ca817eb94e085af1b20e8014d72af Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 29 Jun 2006 12:42:06 +0000 Subject: [PATCH] flush stderr in wxSafeShowMessage(): this might be unnecessary but definitely doesn't hurt and could be useful if stderr is redirected git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/log.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/log.cpp b/src/common/log.cpp index c17db339d9..e211345864 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -166,6 +166,7 @@ void wxSafeShowMessage(const wxString& title, const wxString& text) ::MessageBox(NULL, text, title, MB_OK | MB_ICONSTOP); #else wxFprintf(stderr, _T("%s: %s\n"), title.c_str(), text.c_str()); + fflush(stderr); #endif } -- 2.50.0