[ROOT] 0x0 = TFile::Open()

From: Martin Schulte-Wissermann (schulte@pktw09.phy.tu-dresden.de)
Date: Mon Dec 08 2003 - 14:04:29 MET


hi all,
 just installed v3.10.01 and encountered a problem with :

root [0] TFile* f = TFile::Open("nothere.root")
Error in <TFile::TFile>: file nothere.root does not exist
root [1] f
(class TFile*)0x0  <=====!!

same behaviour in compiled code.
is this a feature?
i wonder, because it prohibits to call IsOpen() or IsZombie.

ps: if i use f = new TFile(...) everything seems ok.

cheers,
 martin

(v3.10.01, gcc2.9?)



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET