W dniu 01.02.2011 14:08, michael.vancann...@wisa.be pisze:
To synchronize threads created in the DLL you must explicitly export a
call from your DLL which calls CheckSynchronize, and this call must be
called from the main program at regular intervals.
Hm so I have problem because I don't have s
On Tue, 1 Feb 2011, dib...@wp.pl wrote:
Hi,
I have form and thread in DLL. It seems that Synchronize() doesn't work.
Thread is hanging on first Synchronize().
It works only when I open form in ShowModal. I debug this and only difference
between Show() is that ShowModal call WidgetSet.AppPro
In our previous episode, dib...@wp.pl said:
>
> I have form and thread in DLL. It seems that Synchronize() doesn't work.
> Thread is hanging on first Synchronize().
Probably you have two RTLs, one in the RTL and one in the main program. As
far as I know this will also fail in Delphi.
__
Hi,
I have form and thread in DLL. It seems that Synchronize() doesn't work.
Thread is hanging on first Synchronize().
It works only when I open form in ShowModal. I debug this and only
difference between Show() is that ShowModal call
WidgetSet.AppProcessMessages in loop. I can rewrite my code
In our previous episode, Michael Van Canneyt said:
> Export SetThreadManager() and call it from your main application with the
> threadmanager from the main application.
Should wakemainthread or something be set also?
___
fpc-pascal maillist - fpc-pasc
Thank you for your help!
I will now move some parts of the lib to a DBus daemon and run only the
necessary parts of the lib in extra threads.
I'll also try to set the threadmanager.
On Fri, 16 Apr 2010 13:10:15 +0200 (CEST), Michael Van Canneyt
wrote:
> On Fri, 16 Apr 2010, Matthias Klumpp wrote:
On Fri, 16 Apr 2010, Matthias Klumpp wrote:
Set the thread manager of the library to the main application thread
manager. That should hopefully work. But it is not guaranteed; there
are many issues with libraries and threads under linux.
Michael.
How do I do that?
Export SetThreadManager()
> Set the thread manager of the library to the main application thread
> manager. That should hopefully work. But it is not guaranteed; there
> are many issues with libraries and threads under linux.
>
> Michael.
How do I do that?
(There is also another thing which I have forgotten: The library sh
On Fri, 16 Apr 2010, Matthias Klumpp wrote:
Hello!
I have a serious problem with a shared lib and threads.
To fix a critical bug in my app, the shared library has to execute commands
asynchronous. To make the non-blocking API I use classes inherited from
TThread, which process serveral actions
Hello!
I have a serious problem with a shared lib and threads.
To fix a critical bug in my app, the shared library has to execute commands
asynchronous. To make the non-blocking API I use classes inherited from
TThread, which process serveral actions. Those threads have to submit data
back to the m
chromdildo wrote:
Hallo and thanks for the quick reply.
TThread.Synchronize(@myfunction); //simply doesn't call myfunction
Florian Klaempfl wrote:
>> You need to call CheckSynchronize in your main loop. However,
Sychronize is broken in the 1.9.8 release.
Will this get fixed until 2.0.0 ?
It's a
Hallo and thanks for the quick reply.
TThread.Synchronize(@myfunction); //simply doesn't call myfunction
Florian Klaempfl wrote:
>> You need to call CheckSynchronize in your main loop. However,
Sychronize is broken in the 1.9.8 release.
Will this get fixed until 2.0.0 ?
And what about Lazarus LCL
chromdildo wrote:
Hello guys.
I don't want to annoy you again..
...but what's up with TThread ?
TThread.Synchronize(@myfunction); //simply doesn't call myfunction
I can call it directly but not via synchronize.
If not synchronized, gtk+ blows.
What am I doing wrong :(
You need to call CheckSynchron
Hello guys.
I don't want to annoy you again..
...but what's up with TThread ?
TThread.Synchronize(@myfunction);
//simply doesn't call myfunction
I can call it directly but not via synchronize.
If not synchronized, gtk+ blows.
What am I doing wrong :(
best regards and thanks for help
./chrom
-
14 matches
Mail list logo