[fpc-devel] StdOut capture for FPC RTL

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Nov 25 11:01:17 CET 2010


On 25 Nov 2010, at 10:52, Anton Kavalenka wrote:

> Due to incompatibility of RTL between FPC and Delphi my capturing  
> tricks not work.
> BTW what the real reason to make these files as threadvar?

To prevent multiple threads writing to stdin/stdout/sterr at the same  
time from corrupting each other's data (all of these text files use an  
internal buffer, even when the output is immediately flushed  
afterwards).


Jonas





More information about the fpc-devel mailing list