Hi Anton, this is a long standing issue. Currently the GUI classes are not I/O aware, i.e. they have no Streamers() and no default ctors. It is my intention to make all GUI classes I/O aware so it should be possible to save complete GUI's to disk. This might be coming in the not too distant future. For the thime being you could make a default TADC ctor like this: TADC::TADC() : TGFrame(0, 300, 300) { } Cheers, Fons. KOSU_FOKIN@garbo.lucas.lu.se wrote: > > Hi! > > I would like to save an object of a class derived from TGFrame and I can not read it back > because > > Error in <TClass::New>: no default ctor for class TADC > Error in <TBuffer::ReadObject>: could not create object of class TADC > > Now how can I make a default constructor TADC::TADC() if there is no TGFrame::TGFrame() > which is the base class for TADC()? > > Best regards, > Anton -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:42 MET