[fpc-pascal] Re: put data to stdout (fpc vs. gcc)

Michael Van Canneyt michael at freepascal.org
Thu Jun 21 19:28:03 CEST 2007



On Thu, 21 Jun 2007, fpc at xgelb.de wrote:

> Hi
> 
> I try your solutions and here are the results:
> 
> 1.) TIP: set text buffer higher (using settextbuf) -> RESULT: procedure breaks later
> 2.) TIP: use flush() after writeln() -> RESULT: procedure breaks on first flush()
> 3.) TIP: convert first float to text and then put it out -> RESULT: the same breaks like the writeln()-included formating
> 4.) TIP: use sprintf form libc unit -> RESULT: not tested, because the file descriptors change(, isn't?)
> 5.) TIP: write your own writeln() -> RESULT: not tested, because is to difficult but very interesting

It's hard to pull any conclusions from this without the full code.
Sounds like a buffering problem, but this is far from sure.

Michael.



More information about the fpc-pascal mailing list