[fpc-devel] Some details on BeginThread problem
Robert Reimiller
certgrps at certsoft.com
Sat Sep 9 04:22:09 CEST 2006
On Fri, 08 Sep 2006 20:34:48 -0000, Burkhard Carstens <fpc at bcsoft.de>
wrote:
> Am Freitag, 8. September 2006 21:44 schrieb Robert Reimiller:
> [..]
>> I'm using objfpc mode. Changing addr(libthread) into @libthread
>> solved the problem.
>> I should have thought of that since I had the same problem with
>> getting the address of a callback procedure. It now all compiles, now
>> for the debugging......
>
>> From rtl/linux/tthread.inc line 189:
>
> { TThread }
> constructor TThread.Create(CreateSuspended: Boolean;
> const StackSize: SizeUInt =
> DefaultStackSize);
> begin
> // lets just hope that the user doesn't create a thread
> // via BeginThread and creates the first TThread Object in there!
> InitThreads;
> ...
>
> I don't have mac os, no idea, if this applies there, too. Just thought,
> I should mention this ;-)
I think this only applies if you are using the tthread class, which I'm
not. At least I've never had any problems on Delphi with 15 threads
running :)
More information about the fpc-devel
mailing list