Re: Problem with TThread using Signal & Slots and TCanvas

From: Brett Viren <bv_at_bnl.gov>
Date: Mon, 22 Aug 2011 09:57:11 -0400


Thomas Lauf <thl_at_hll.mpg.de> writes:

> 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 - 15:57:26 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 22 2011 - 17:50:02 CEST