IgnoreTObjectStreamer

Hi,

I am doing the following:

root [0] TFile f(“test.root”,“recreate”)
root [1] TNamed a
root [2] TNamed::Class()->IgnoreTObjectStreamer()
root [3] a.Write
Write
Write
root [3] a.Write()
(Int_t)43
root [4] f.Close()
root [5] .q
[greder@sbgat509 root]$ ro test.root
root [0]
Attaching file test.root as _file0…
Error in TBufferFile::CheckByteCount: object of class TNamed read too many bytes: 178 instead of 10
Warning in TBufferFile::CheckByteCount: TNamed::Streamer() not in sync with data on file test.root, fix Streamer()
Error in TBufferFile::CheckByteCount: object of class TNamed read too many bytes: 111 instead of 28
Warning in TBufferFile::CheckByteCount: TNamed::Streamer() not in sync with data on file test.root, fix Streamer()
Error in TBufferFile::CheckByteCount: object of class TNamed read too many bytes: 223 instead of 26
Warning in TBufferFile::CheckByteCount: TNamed::Streamer() not in sync with data on file test.root, fix Streamer()
Error in TBufferFile::CheckByteCount: object of class TNamed read too many bytes: 120 instead of 22
Warning in TBufferFile::CheckByteCount: TNamed::Streamer() not in sync with data on file test.root, fix Streamer()
Warning in TClass::TClass: no dictionary for class y is available
root [1] .q

is that the expected behaviour ?

cheers,
seb

root-config --version
5.23/02

gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: …/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat-linux
Thread model: posix
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)

Hi,

TNamed is really a core class and changing its streaming affects very negatively many other classes (that derived from TNamed). So the
error is not unexpected and does not indicate a problem with IgnoreTObjectStreamer per se.

Cheers,
Philippe.