[Lazarus] Synchronize problem in linux

Zaher Dirkey parmaja at gmail.com
Mon May 23 22:59:04 CEST 2011


On Mon, May 23, 2011 at 4:00 PM, Michael Schnell <mschnell at lumino.de> wrote:

> On 05/23/2011 03:45 PM, Mark Morgan Lloyd wrote:
>
>>
>>  how long has anybody run each test program.
>>
> The known problem with synchronize is that the event only is acknowledged
> when some GUI event occurs, too.
>
> I am not aware of any long-time running problems.
>
>
I resolved my problem with not use the thread object outside the thread when
the Synchronize call this method, i do not know if it that the real reason,
but my project now working in Linux.

you can see the this lines in my changes in
https://github.com/parmaja/miniedit/commit/787112191f1e3fd260b541a523050a150388eaf2#L4L448

-procedure TdbgpGetCurrent.ShowFile; //this function must synced
+procedure TdbgpGetCurrent.ShowFile; //this function must Synchronize
 begin
-  Connection.Server.ShowFile(Connection, FFileName, FLine);
+  DBGP.ShowFile(FCurKey, FCurFile, FCurLine);
 end;

Thanks

-- 
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110523/42b90837/attachment-0003.html>


More information about the Lazarus mailing list