TVector gives mmzip error

From: Glen R. Salo (salo@coax.net)
Date: Sun Aug 08 1999 - 22:19:44 MEST


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:37 MET