[fpc-devel] Console IO revisited

Florian Klaempfl florian at freepascal.org
Fri Dec 3 16:14:41 CET 2010


Am 03.12.2010 16:11, schrieb Thaddy:
> On 3-12-2010 15:50, Daniël Mantione wrote:
>>
>> Could you maybe specify what you want to achieve and in what way FPC
>> requires you to use workaround hacks?
>>
>> Daniël
> Yes,
> 
> In FPC the console IO is *always* redirected, be it through a handle or
> a named file.
> The named file is expected to be independent of redirection. The handle
> not.
> Handle copying or inheritance 

The handles are copied but never used. InitThread reinitializes the std
i/o handles for each thread? See e.g. rtl/win/syswin.inc:173



More information about the fpc-devel mailing list