Getting return value from TMethod Execute

Hi,
Is there a way to access the return value of a function executed by the “Execute” function in the TMethod (TObject) class?
Thanks,
Samcy.

Hi,

To execute a function, you would need to use TMethodCall rather than TMethod. And for: void Execute(void *object, Long_t &retLong); the return value is stored in retLong.

Cheers,
Philippe.