Re: [ROOT] delete TFile

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Dec 18 2001 - 19:11:37 MET


Hi Anton,

Thanks for reporting this situation in case of a Zombie file.
Fix now in CVS.

Rene Brun

Anton Fokin wrote:
> 
> Hi Rene,
> 
> I switched to the latest root and started to observe an error when I try
> to delete a file which supposed to be open in the read mode, but
> physical file doesn't exist.
> 
> It looks like the problem can be caused by fProcessIDs which you take
> care of only in TFile::Init() and do not use safedelete in the
> destructor. You do not call TFile::Init() if you can not open a physical
> file...
> 
> Could you
> 
> - zero fProcessIDs in the constructor (just a good cosmetics)
> - check if (fProcessIDs != 0) in the destructor.
> 
> (Even if this is not the reason for my troubles :))
> 
> Cheers,
> Anton



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET