[ROOT] Problems reading Objects

From: Nuno Almeida (nuno.almeida@iscte.pt)
Date: Thu Jul 25 2002 - 12:45:36 MEST


Hi all,

I have one root file with TObjects. These objects are using
TClonesArray's.
I read the objects by the following way:

TFile *f=new TFile("Evento.root");
Event *event=new Event();
event=(Event*)f->Get("Event;1");

but when i try to open another event i obtain a segmentaion violation.

Whithout TClonesArray it works fine.

The way i am using TClonesArray is like in root example Event.

Could you give any ideas why this happens ?

Thanks,

Nuno Almeida



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