[ROOT] Re: Bug in TMethodCall of root_3.05?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Apr 07 2003 - 19:58:45 MEST


Hi Ruben,

Sorry for the long delay.
This problem has been recently fixed by Philippe in the development 
version in CVS.

Rene Brun

On Sat, 8 Mar 2003, Ruben Shahoian wrote:

> Dear Rene,
> it seems there is a bug in the TMethodCall class of root3.05, which was
> absent in the root3.02: I define the prototype of macro wich accetps Int_t
> argument. If the macro is compiled, it incorrectly passes argument=0 (it 
> passes -1 instead) while in interpreted mode everything seems OK. 
> 
> fUserMacro->InitWithPrototype("UserMacro.C++","Int_t");
> Int_t flag=0
> fUserMacro->SetParamPtrs(&flag);
> Passes -1
> 
> fUserMacro->InitWithPrototype("UserMacro.C","Int_t");
> Passes 0
> 
> The attached RunUserMacro.C reproduces an error.
> 
> Regards,
> 	Ruben Shahoyan
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET