From: Vadim Zeitlin Date: Sat, 18 Jul 2009 23:23:39 +0000 (+0000) Subject: Flush output stream in wxMessageOutputStderr::Output() to avoid losing any output... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8570a7b18f58df85981494fea5f7425a27aea11a 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 --- 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); } // ----------------------------------------------------------------------------