Re: Problem purging files

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Mar 05 1997 - 17:26:35 MET


Chris Green wrote:
> 
> 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 for reporting this bug.
It is fixed in version 1.0

Rene Brun



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