> Please post the complete code.
Here goes (Typed from my Linux box, as i don't have filesharing going
there):
< Start Unit1
Unit unit1;
{$mode objfpc}{$H+}
Interface
Uses
Classes, SysUtils;
Type
threadtest = class(tthread)
constructor Create;
procedure Execute: override;
End
Could we see the complete code please...
Graeme.
On 7/2/06, Ole J. Røtne <[EMAIL PROTECTED]> wrote:
Did try to wrap both of the WriteLn() with
EnterCriticalSection/LeaveCriticalSection.
Same result..
--
There's no place like 127.0.0.1
___
fpc-pasc
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] wri
> -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 &
Ole J. Røtne wrote:
>
> Can anyone explain why i get output like this in a small test program:
> Inside Thread
>Main Loop
> Inside Thread
>Main Loop
> Inside Thread
>Main Loop
>
>
> On Windows the output are lined up just as I would expect:
> Insi
Can anyone explain why i get output like this in a small test program:
Inside Thread
Main Loop
Inside Thread
Main Loop
Inside Thread
Main Loop
On Windows the output are lined up just as I would expect:
Inside Thread
Main Loop
Inside Thread
Main