Re: [ROOT] non ROOT file an IsZombie problem

From: Valeri Fine (fine@bnl.gov)
Date: Fri Jan 18 2002 - 16:51:53 MET


Hello Joe,

The problem with your example is a simple one.
We can not reproduce it to investigate.

The code you attached has no TIter and TFile dtor has no TIter 
either. To understand your troubles quickly and avoid the guess job
you should submit further information (you debugger had provided for sure)

The first question will be what application we are talking about ?
Is it root.exe  with your custom DLL loaded in ? I guess no.


  Best regards, Valeri




-----
Dr.Valeri Fine
STAR/US Atlas                                    E-mail: fine@bnl.gov
Brookhaven National Lab                     Phone: +1 631 344 7806
Upton, NY 11973-5000                       FAX:     +1 631 344 4206
USA



----- Original Message ----- 
From: "joe robe" <joer00@yahoo.com>
To: <roottalk@pcroot.cern.ch>
Sent: Friday, January 18, 2002 9:19 AM
Subject: [ROOT] non ROOT file an IsZombie problem


> Hi Valery and rooters,
> 
> thanks for the hint to check IsZombie when loading non
> root files, but in a MSVC++ app the next line leads to
> a crash, obvioulsy when root is trying to remove the
> stack zombie !
> 
> The debugger points to "TIter.h" where and null
> pointer is passed for the collection parameter. Belwo
> is my staright forward code, what is wrong with this
> ??
> 
> void ApplicationWindow::load( const char *fileName )
> {
> TFile File2(fileName);
> if(File2.IsZombie())
> {
> QMessageBox::information ( this, "File Open","This
> file is not a valid ROOT file !");
> return; // crash here !!
> }
> }
> 
> Joe
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET