On Tue, 7 Jan 2014, Michael Schnell wrote:
On 01/07/2014 02:05 PM, Marc Santhoff wrote:
Graeme G. once posted the source of or a link to a unit called
"ThreadTimer", in which there is TfpTimer. That one is independant from
LCL.
Unfortunately it only helps if thread communication (e.g. by TThread.Queue)
is used to notify the main thread). Hence the problem is the same (and
addressable by using checksynchronize() with a decent timeout).
I think you misunderstand TThread.Queue. It does not notify the main thread.
On the contrary, CheckSynchronize needs to be called in order to let
TThread.Queue do its work.
Likewise, TThreadTimer works only if CheckSynchronize is called on a regular
basis in the main thread.
Michael.
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus