Ole J. Røtne wrote:
>  
> 
>> -----Opprinnelig melding-----
>> Fra: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] På vegne av 
>> Florian Klaempfl
>> Sendt: 2. juli 2006 12:46
>> Til: FPC-Pascal users discussions
>> Emne: Re: [fpc-pascal] writeln in threads on linux
>>
>>> And if this is a "wrong way" of doing this thing, could 
>> someone tell 
>>> me how it should be..
>> You probably want to guard the output with mutexes or semaphores.
>> Writing unsynchronized to a stream has always unexpected results.
>>
> 
> Did try to wrap both of the WriteLn() with
> EnterCriticalSection/LeaveCriticalSection. 
> Same result..
> 

Please post the complete code.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to