Dynamic loading of classes

Christoph Borgmeier (borg@mail.desy.de)
Wed, 30 Sep 1998 14:17:10 +0200 (MET DST)


Hello all,

I am trying to figure out, how the loading of classes works. When I start
Root and load my shared library, the object browser does not show me my
classes, until they are used explicitely.

There is an event class connected to a branch. When I enter
branch->GetEvent(0), I get:

Error in <TBuffer::ReadClass>: illegal class name in I/O buffer

*** Break *** segmentation violation

If I do an event->Print() first, this message does not show up and the
event is read correctly. (Print calls mainly the Print function of the
class members)

Is there a systematic way to prevent the error? Thank you for your help
Christoph

-- 
 Christoph Borgmeier    Mail:  DESY F15/HERA-B, Geb. 61/117
                               Notkestr. 85, 22607 Hamburg
 Humboldt Univ Berlin   Phone: +49 40 8998 4850
                        Email: Christoph.Borgmeier@desy.de