Re: [ROOT] Problem with TPaletteAxis

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu May 15 2003 - 21:44:23 MEST


Hi Peter,

I am unfortunately aware of this problem that happens when reading a TH2
object containg a TPaletteAxis object. This class is in libHistPainter.
The current workaround is to
  gSystem->Load("libHistPainter");
before reading the object from the file. Or alternatively, draw
any TH1 object before reading the TH2 from the file.

I will fix the problem in the next iteration.

Rene Brun

On 
Thu, 15 May 2003, Peter Skensved wrote:

>    If I use c3->SaveAs( "file.root" ) to save a canvas to a root file and read it
> back later I get several errors and warnings :
> 
> TFile *f = new TFile( "file.root" )
> Warning in <TClass::TClass>: no dictionary for class TPaletteAxis is available
> c3->Draw()
> Error in <TBuffer::CheckByteCount>: object of class TPaletteAxis read too few bytes:
> 17 instead of 311
> Warning in <TBuffer::CheckByteCount>: TPaletteAxis::Streamer() not in sync with data
> on file, fix Streamer()
> Error in <TBuffer::CheckByteCount>: object of class TPaletteAxis read too few bytes:
> 4 instead of 298
> Warning in <TBuffer::CheckByteCount>: TPaletteAxis::Streamer() not in sync with data
> on file, fix Streamer()
> 
> 
>    I'm using 3_05/04
>                                                              peter
> 
> ----
> 
> Peter Skensved                          Email : peter@SNO.Phy.QueensU.CA
> Dept. of Physics,
> Queen's University,
> Kingston, Ontario,
> Canada
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET