[fpc-devel] Threads not working in console application
Michael Van Canneyt
michael at freepascal.org
Thu Dec 6 15:02:15 CET 2007
On Thu, 6 Dec 2007, Graeme Geldenhuys wrote:
> On 06/12/2007, Michael Van Canneyt <michael at freepascal.org> wrote:
> >
> > As far as I can see, you forget to call checksynchronize in the main thread.
> >
>
> Thanks Michael....
>
> > BTW. There is a TThreadedTimer in the FCL, based on your code.
>
> I guess it didn't make it into FPC 2.2.0 as I searched all the sources
> and couldn't find any such class.
Hm. It should be. Unit fptimer.pp.
Of course, if you used the TThreadedTimer name, it won't work.
look for "TFPThreadedTimerDriver". I generalized the architecture a bit.
Michael.
More information about the fpc-devel
mailing list