[ROOT] delete TFile

From: Anton Fokin (anton.fokin@smartquant.com)
Date: Tue Dec 18 2001 - 18:21:07 MET


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