On Monday 13 March 2006 08:07, Luca Olivetti wrote: > 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
I couldn't find any reference to USE_SYNCHRONIZE referred to in these messages in the SVN lcl code I downloaded last week. Has the design changed since then? I do agree with Luca that this behavior should be automatic so that applications require less platform specific code. _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives