[fpc-devel] StdOut capture for FPC RTL

Anton Kavalenka anton.k at tut.by
Thu Nov 25 10:52:49 CET 2010


?? 25.11.2010 11:39, Thaddy ???????(??):
> On 25-11-2010 10:24, michael.vancanneyt at wisa.be wrote:
>>
>> They are threadvars in trunk:
>>
>> ThreadVar
>>   ThreadID    : TThreadID;
>>   { Standard In- and Output }
>>   ErrOutput,
>>   Output,
>>   Input,
>>   StdOut,
>>   StdErr      : Text;
>>
>> Michael.
>> _______________________________________________
> That's not Delphi compatible, btw: ;) : op.cit: system.pas
> var
> ...........
>   Input: Text;            { Standard input }
>   Output: Text;           { Standard output }
>   ErrOutput: Text;        { Standard error output }
>
> It may be a good thing, though.
> It also explains my strange results in testing D vs FPC this morning.
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
That is!

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?
Per-thread StdOut, StdIn, StdErr (ooooo! the application with multiple 
standard outputs)?

regards,
Anton

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20101125/c4d46384/attachment.html>


More information about the fpc-devel mailing list