En/na Paul Michell ha escrit:
If you use synchronize, the IDE calls "CheckSynchronize" for you. In
command line you need to do this in main thread.
I tried this in the application OnIdle event with Done set to false and it
worked a charm! I am a little concerned this may not be the best way to get
this call seen by the main application loop. Any ideas? Once I have decided
on the best way to handle this I will post a link to the revised code.
IMHO this should work "automagically", no matter if inside the IDE or not.
In fact I though this was already so, but since I hadn't time to play
with lazarus lately I couldn't check:
http://www.lazarus.freepascal.org/list_archives/lazarus/msg10481.html
http://www.lazarus.freepascal.org/list_archives/lazarus/msg10483.html
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