Problem purging files

From: Chris Green (Christopher.Green@cern.ch)
Date: Tue Mar 04 1997 - 08:12:32 MET


Hi again,

Can anyone tell me why this doesn't work, and what I have to do instead?

root [4] TFile *hfile = new TFile("xsec_m030_161.root","UPDATE");
root [5] .ls
TFile**         xsec_m030_161.root
 TFile*         xsec_m030_161.root
  KEY: TTree    T;2     A simple ROOT tree
  KEY: TTree    T;1     A simple ROOT tree
  KEY: TH2F     h1;1    Total Cross-sections at 161 GeV
  KEY: TH2F     h2;1    Right-handed Cross-sections at 161 GeV

root [7] hfile->ls();
TFile**         xsec_m030_161.root
 TFile*         xsec_m030_161.root
  KEY: TTree    T;2     A simple ROOT tree
  KEY: TTree    T;1     A simple ROOT tree
  KEY: TH2F     h1;1    Total Cross-sections at 161 GeV
  KEY: TH2F     h2;1    Right-handed Cross-sections at 161 GeV

root [8] hfile->Purge();
Deleting key :T at address 1282149 Nbytes=6393

 *** Break *** segmentation violation

??????

Thanks,
Chris.



--- 
Chris Green. HEP, University of Liverpool 
MAIL Chris.Green@cern.ch, WWW http://hep.ph.liv.ac.uk/~chris/
+41 22 767 8075. On LTA at CERN.
---
"I wouldn't give it to a dog, and I *am* one." -- Gaspode the wonder dog (Terry Pratchett, Moving Pictures)



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET