[ROOT] Crash in TTree::GetListOfBranches
From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Thu Feb 26 2004 - 18:56:46 MET
Dear rooters,
running the attached macro with the attached file results in a crash.
Please don't tell me, that this is due to a corrupt file - I know that
the file is corrupt. Is there any chance to ignore the corrupt file
instead of letting it produce a seg-fault?
Thanks in advance,
Thomas.
void test2()
{
TObject *o = new TObject;
TFile f("mytest.root", "RECREATE");
TTree *t=new TTree("Events", "");
t->Branch("TObject.", "TObject", &o);
t->Fill();
f.Write();
f.Close();
TChain c("Events");
c.Add("mytest.root");
c.Add("12383.ON.root");
cout << c.GetEntries() << endl;
cout << c.GetListOfBranches() << endl;
}
This archive was generated by hypermail 2b29
: Sun Jan 02 2005 - 05:50:06 MET