Re: Problem with TThread using Signal & Slots and TCanvas

From: Thomas Lauf <thl_at_hll.mpg.de>
Date: Mon, 22 Aug 2011 16:47:47 +0200


Hi Brett,

thanks for the tip, that solves the issue. The application now works without freezing!

>> So far, so good. I now want to have a thread clicking the button for me.
>> I created a thread routine to which I hand over a pointer to the
>> producer and the thread then calls the same function as the button on
>> a regular basis. This works as long as I do not draw to a canvas, or
>> more exactly as long as I do not update the canvas within the thread.

>
> How about replacing your button pushing thread with a TTimer?
>
> http://root.cern.ch/root/html/TTimer.html
>
> -Brett.
Received on Mon Aug 22 2011 - 16:48:07 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 22 2011 - 23:50:01 CEST