STEP export: ensure messages are immediately printed, and not stored in buffer.

The issue was mainly seen on Windows, in STEP export with msys2 build but also
with other builds when exported from Pcbnew dialog
This commit is contained in:
jean-pierre charras 2025-06-24 17:06:35 +02:00
parent 100260ed59
commit 0d013498ef

View File

@ -130,6 +130,10 @@ REPORTER& CLI_REPORTER::Report( const wxString& aMsg, SEVERITY aSeverity )
else
wxFprintf( target, aMsg + wxS( "\n" ) );
// Needed after wxPrintf (or printf) to be sure the message is immediately printed
// (i.e. not stored in some i/o buffer)
fflush( target );
return *this;
}