From 8570a7b18f58df85981494fea5f7425a27aea11a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 18 Jul 2009 23:23:39 +0000 Subject: [PATCH] Flush output stream in wxMessageOutputStderr::Output() to avoid losing any output if the program crashes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/msgout.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp index 07889dbc59..804bec9b47 100644 --- a/src/common/msgout.cpp +++ b/src/common/msgout.cpp @@ -147,6 +147,8 @@ void wxMessageOutputStderr::Output(const wxString& str) fprintf(m_fp, "%s", (const char*) buf); else // print at least something fprintf(m_fp, "%s", (const char*) strWithLF.ToAscii()); + + fflush(m_fp); } // ---------------------------------------------------------------------------- -- 2.45.2