[ROOT] [Fwd: Problems in streaming a variable lenght array of TString]
Chiara Zampolli <Chiara.Zampolli <at> bo.infn.it>
2009-08-04 13:59:49 GMT
Hi,
Sorry in case you double receive this mail... I sent it yestarday,
but I'm not sure it was properly received...
Here it is.
Cheers,
Chiara
**********************
Hi,
I have a problem when trying to write an object containing a
variable length array of TString to a file. In fact, the object contains
a variable length array of different types, which are initialized only
if the corresponding constructor is called.
In the attached file you can fine the class (AliDCSArray.h/cxx)
where the array is, and a macro (test1.C) to write an object of that
class in a file. The TString array is not initialized, in this example,
while I initialize the Bool_t one.
Here's what I get when exectuting the macro:
root [0] .x test1.C
Info in <TUnixSystem::ACLiC>: creating shared library
/home/zampolli/FileDCSLHC/ForROOT/././AliDCSArray_cxx.so
Error in <TStreamerInfo::WriteBufferAux>: The pointer to element
AliDCSArray::fString type 501 (TString*) is null
(Continue reading)