On Sun, 22 May 2011 15:36:51 +0200
Zaher Dirkey <[email protected]> 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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to