Re: TVector gives mmzip error

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 19 1999 - 16:26:51 MEST


Hi Glen,
The problem you are describing happens when very small objects
containing
very special patterns are written via TObject::Write.
I have now protected this case in the development version 2.23/01.
This version will be exposed middle of next week.

Rene Brun


Glen R. Salo wrote:
> 
> Executing the following macro gives the warning:
> 
> mmzip: output buffer too small for in-memory compression
> 
> And, indeed, it produces a bad ROOT file.  If the compression level is set to
> 0, all works well.  Any ideas why?  (I'm running root version 2.22.10 under
> RedHat linux 6.0)
> 
> Thanks for your help,
> 
> Glen
> 
> {
>   gROOT->Reset();
> 
>   TFile file("tvec.root","RECREATE");
> //   file.SetCompressionLevel(0);
>   TVector v(20);
> 
>   Float_t fi = 100.e6;
>   Float_t df = (1e9-fi)/19.;
>   Float_t f;
> 
>   for (Int_t i=0; i<20; i++) {
>     v(i) = fi+i*df;
>   }
> 
>   v.Write("v");
>   file.Close();
> 
> }



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET