瀏覽代碼

* Flush all StdIO output files

git-svn-id: trunk@2985 -
peter 19 年之前
父節點
當前提交
9381c9360e
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      rtl/inc/system.inc

+ 5 - 0
rtl/inc/system.inc

@@ -668,6 +668,11 @@ Begin
      dump_stack(stdout,ErrorBase);
      dump_stack(stdout,ErrorBase);
      Writeln(stdout,'');
      Writeln(stdout,'');
    End;
    End;
+  { Make sure that all output is written to the redirected file }
+  Flush(Output);
+  Flush(ErrOutput);
+  Flush(StdOut);
+  Flush(StdErr);
 End;
 End;