Michael Schnell wrote:
On 05/22/2011 03:36 PM, Zaher Dirkey 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.
The code responsible for "Synchronize" is done in the "Widget Type" (aka "interfaces") in the LCL.

Not all Widget Types support "Synchronize" and there are versions of the LCL with broken support.

I just tested that with the most recent LCL version of the GTK2 Widget set, "synchronize" seems to work fine.

But for how long? I had a lot of trouble with a program a few months ago where data was being fetched from an SQL database in a thread, and was being drawn on a visible form and driving debug output to a TMemo via synchronise. If, and only if, the TMemo was visible then the program would lock up after about 280 iterations; however, I've not managed to characterise that well enough to dare raising it as a bug.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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

Reply via email to