En/na Tom Lisjac ha escrit:
On 2/3/06, A.J. Venter <[EMAIL PROTECTED]> wrote:
But the moment I try to use it in a simple test program, it throws an
async-reply exception, something I would normally only expect if threaded
code tried to update the display irectly.
Any ideas where my thinking went wrong ?
The synchronize calls shouldn't be placed inside your TThreadedProcess
code... they should be used in the main application thread to provide
mutual exclusion for the shared visual components.
It's the other way round, at least in delphi: you call synchronize from
a thread when you want the method executed in the context of the main
thread.
Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 Fax +34 93 5883007
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives