]> git.saurik.com Git - wxWidgets.git/commitdiff
Flush output stream in wxMessageOutputStderr::Output() to avoid losing any output...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 18 Jul 2009 23:23:39 +0000 (23:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 18 Jul 2009 23:23:39 +0000 (23:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/msgout.cpp

index 07889dbc592d2557d948d0dc3a8daa2f30835ec1..804bec9b47144669db8b0978bfaa6f4ae319a966 100644 (file)
@@ -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);
 }
 
 // ----------------------------------------------------------------------------