Re: [ROOT] TQObject in the present

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Mar 19 2002 - 18:17:02 MET


This is needed to make error checking possible.
Just add a method 

void Calculation::SetStatus(char *buf) {Emit("SetStatus(char*)", buf);}

and it should work fine again.

Cheers, Fons.



On Tue, 2002-03-19 at 17:55, Ricardo Eusebi wrote:
> HI,
> 
> I was using  a program in which all classes has been derived from TQObject.
> The program work perfect in root version 3.01/06 29 July 2001.
> When changing to 3.02/07 17 January 2002 I get the following error :
> 
> Error in <TQObject::CheckConnectArgs>: signal 
> Calculation::SetStatus(char*) does not exist
> 
> The main program (type ControlBar ) creates a calculation_ptr  object 
> which is of type Calculation *
>  Inmediately after  creating this object a sentence like
>     calculation_ptr->Connect("SetStatus(char 
> *)","ControlBar",this,"SetStatus(char *)");
> is found.
> Now the Calculation class dos not have a SetStatus(char*) member, but it 
> does has a
> sentence    Emit("SetStatus(char*)",buffer);
> 
> This used to work. Because the calculation class emited an "SetStatus" 
> signal and ControlBar catched it.
> 
> The question i guess is : If I make a Connect, should I always connect 
> to a member???. Cannot I just connect to a specific string  and try to 
> catch that string, even if the string is not a member??
> 
> Thanks in advance.
> 
> Ricardo Eusebi
> 
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET