[fpc-devel] StdOut capture for FPC RTL

Anton Kavalenka anton.k at tut.by
Thu Nov 25 12:24:23 CET 2010

?? 25.11.2010 13:14, Sven Barth ???????(??):
> Am 25.11.2010 11:08, schrieb Michael Schnell:
>> On 11/25/2010 10:24 AM, michael.vancanneyt at wisa.be wrote:
>>> They are threadvars in trunk:
>> Of course if stdin, stdout, and stderr are not thredvars, their use is
>> not thread safe.
>> But if they are threadvars, how are they initialized ? Supposedly the
>> main thread instances are initialized as everybody expects and thus
>> connected to the appropriate pipes (or whatever this is in Windows). But
>> what are the instances for threads connected to ?
> They are initialised when the thread is started (before your own 
> routine is called) to the same values that are used for StdIO on 
> application startup.
> Regards,
> Sven
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
So the new question:
What I have to do to properly initialize these defaults for new threads 
AFTER capturing StdOut?


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

More information about the fpc-devel mailing list