On Sat, 15 Dec 2007, Al Boldi wrote:

> melchiorre caruso wrote:
> > I found an article that explains why my code does not work on Windows:
> 
> Actually, I had a closer look at synchronize, and it turns out to be 
> dependent on the GUI, which probably means that you need to include 
> 'Interfaces' in your library uses clause.  Can you try this on windows?

No. 
Synchronize does not depend on the GUI, it does depend on the main
thread calling CheckSynchronize from time to time.

The main thread in a lazarus program handles the GUI, and when the GUI
is idle, it calls checksynchronize for you. That's why it works 'transparantly'.

In a DLL you must make sure that the main thread calls CheckSynchronize
from time to time. This usually means exposing a command that does this,
and letting the main application call this command from time to time.

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to