[fpc-devel] Output flush on pipes

Tomas Hajny XHajT03 at mbox.vol.cz
Mon May 15 02:37:09 CEST 2006


On 14 May 06, at 19:20, Vincent Snijders wrote:
> Tomas Hajny wrote:
> > On 14 May 06, at 8:54, Vincent Snijders wrote:
> >>Daniƫl Mantione wrote:
> >>>Op Sun, 14 May 2006, schreef Martin Schreiber:
> >>>
> >>>
> >>>>Since some time FPC doesn't  flush output on pipes after writeln.
> >>>>On linux I can use a pseudo terminal, what can I do on win32 to get flushed 
> >>>>output from FPC into the message window of MSEide?
> >>>
> >>>
> >>>About flushing the output, I think it is impossible to receive the output 
> >>>interactively currently, it will output in bursts. You should still be 
> >>>able to receive the output, though. If you want to receive it 
> >>>interactively, I think we can modify the compiler to flush after each 
> >>>message. But again, I do not recommend this approach.
> >>
> >>What I would appreciate, is that the output I get remains in the same 
> >>order as it is generated. So, first the compiler saying linking and then 
> >>the linker giving error messages. See 
> >>http://www.freepascal.org/bugs/showrec.php3?ID=4996
> > 
> > 
> > I guess that this should be easy to fix by always 
> > flushing Output before launching external 
> > utilities. Am I overlooking something? If not, I 
> > can probably add this.
> 
> I  think that is indeed what needs to be done.

Done (in trunk). Please, check whether it fixes 
bug 4996 for you and let me know the results, so 
I could possibly close that bug report.

Tomas



More information about the fpc-devel mailing list