[Fwd: [ROOT] Crash in TTree::GetListOfBranches]

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Mon Mar 01 2004 - 10:33:04 MET


Any news about this problem?

-------- Original Message --------
Subject: [ROOT] Crash in TTree::GetListOfBranches
Date: Thu, 26 Feb 2004 18:56:46 +0100
From: Thomas Bretz <tbretz@astro.uni-wuerzburg.de>
To: roottalk@pcroot.cern.ch <roottalk@pcroot.cern.ch>
CC: Wolfgang Wittek <wittek@mppmu.mpg.de>

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