RE: [ROOT] aclic with debugging info

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Sep 04 2002 - 20:27:48 MEST


Hi Victor,

Thanks for reporting this problem.  ROOT 3.03.08 is unable to properly notice the absence of a class (and thus provide what we call 'fake classes').  This manifests itself by the lack of messages like:

   Warning in <TClass::TClass>: no dictionary for class Event is available

To fix the problem, please apply the following patch:

cvs diff -u meta
Index: meta/src/TCint.cxx
===================================================================
RCS file: /user/cvs/root/meta/src/TCint.cxx,v
retrieving revision 1.58
diff -u -r1.58 TCint.cxx
--- TCint.cxx	2002/08/20 10:51:50	1.58
+++ TCint.cxx	2002/09/04 18:19:33
@@ -535,7 +535,7 @@
       // assumes that the TClass is well formed to do a lot of information
       // caching. The method SetClassInfo (i.e. here) is usually called during
       // the building phase of the TClass, hence it is NOT well formed yet.
-      if ((cl->fClassInfo->Property() & (kIsClass|kIsStruct)) == 0) {
+      if (cl->fClassInfo->IsValid() && (cl->fClassInfo->Property() & (kIsClass|kIsStruct)) == 0) {
          cl->MakeZombie();
       }
 
Cheers,
Philippe.

-----Original Message-----
From: Victor Perevoztchikov [mailto:perev@bnl.gov]
Sent: Tuesday, September 03, 2002 4:47 PM
To: Philippe Canal; Fons Rademakers; Mike Kordosky
Cc: ROOTtalk Mailing List
Subject: Re: [ROOT] aclic with debugging info


Hi Philippe,
as I know you are only one acceptable from ROOT team.

I found that ROOT 3.03.08 can not read the old TTree files.
Immediate crash. Old ROOT can read them.

When old ROOT open the file, a lot of messages about unknown classes.
It is understandable, StreamerInfo objects is read, and checked, but library
of classes
is not loaded.
When new ROOT opens the file, no any messages. Probably it can not read
StreamerInfo
Then it crashes after attempt to read. TBroser enough to test it.

Victor

Victor M. Perevoztchikov   perev@bnl.gov
Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000
tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690



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