[ROOT] pointer to member function

From: Igor Giller (igor@tauphy.tau.ac.il)
Date: Tue Mar 25 2003 - 15:43:31 MET


  Hello,

I am using root Version 3.03/9 with SuSE 8.1 and gcc3.2.
In my analysis program I define the Event Class and add it with
shared library to the root framework. The program worked fine.

At some moment I decided to use pointer to member function of
the Event Class.

   class Event : public TObject {
    private:
   ......
   Int_t  (Event::*Sgz)(Int_t, Double_t&, Double_t*, Double_t*, Double_t*, Double_t*);
    public:
   ......
     ClassDef(Event,1)
    };


After defining this pointer program crashed
  " *** Break *** segmentation violation "
while executing the function
  "branch_mc = tree->Branch("event_mc","Event",&event_mc,bufsize,split);" .

What can be the problem?


Thanks in advance.
Igor



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