Array of TObjArrays

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Wed Mar 15 2000 - 17:11:14 MET


Hi,

I have an array of TObjArrays that I want to stream. When I read the
objects back, I have an error :

Error in <TClass::New>: no default ctor for class TObjArray
Error in <TBuffer::ReadObject>: could not create object of class
TObjArray
Warning in <TExMap::Remove>: key 2560 not found at 45
Warning in <TBuffer::CheckObject>: reference to object of unavailable
class TObjArray, pointer will be 0

Program received signal SIGSEGV, Segmentation fault.

This happens in the streamer of a class, here is the excerpt of the
Streamer that does the job :

      mFDNames = new TObjArray* [mCapacity];
      memset(mFDNames, 0, mCapacity*sizeof(TObjArray*));
      TObjArray* obj;
      for (Int_t i=0; i<mCapacity;i++) {
         R__b >> obj;
         if (obj) mFDNames[i] = obj;
      }

It happens only on Alpha with gcc 2.8.1, but works fine on Alpha/egcs
and LinuxPPC/egcs. What does this mean ? Should I do something special
before R__b>>obj ?

Cheers

Damir
-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET