On Wed, 15 Sep 2010 12:30:29 +0100
Henry Vermaak <[email protected]> wrote:

> On 15 September 2010 12:09, Graeme Geldenhuys <[email protected]> wrote:
> > On 15 September 2010 13:07, Michael Schnell wrote:
> >>
> >> I suppose the GUI will not  react while the task you run in "OnIdle" is
> >> busy. So you will need to split your add-on in tiny pieces and run one 
> >> after
> >> the other in subsequent "OnIdle" callbacks.
> >
> > Or use a thread and make the code simpler! :)
> 
> And more error prone, and open to races and deadlocks, and harder to
> debug.  Imho, using threads are for serious work and code that needs
> to take advantage of extra cores/processors.

+1

Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to