[Lazarus] Synchronize problem in linux
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun May 22 22:57:33 CEST 2011
On Sun, 22 May 2011 15:36:51 +0200
Zaher Dirkey <parmaja at gmail.com> wrote:
> Hi, i have multithreaded gui Lazarus application (socket server), that
> thread call the gui function (open file), i used Synchronize for that read
> with function ShowFile
> It is work fine with Windows, but in Linux (OpenSuse 11) the procedure
> ShowFile not called.
>
> I used in the main project file
> {$IFDEF UNIX}
> cthreads,
> {$ENDIF}
>
> Did i missed somthing?
>
> my procedure called like that
> Connection.Synchronize(ShowFile);
>
> Connection is a thread, and this line called inside a object created and
> processed inside that thread, ShowFile must open a file in my gui editor.
Sounds correct.
Without more code it is hard to help more.
This might help:
http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial
Mattias
More information about the Lazarus
mailing list