Re: TMap::Update()

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Mon, 10 Aug 2009 14:28:36 +0200


Hi Boris,

  please follow the comments in SetMapAddress():

http://root.cern.ch/root/html/src/TMapFile.cxx.html#emEGw

Before doing the TMapFile::Create() make sure that all needed shared libraries are loaded (i.e. if you need graphics, first create some canvas, so the graphics libs are loaded, use gSystem->ListLibraries()).

Cheers, Fons.

pokornyb_at_fzu.cz wrote:
> Dear rooters,
>
> I've a promblem whith TMapFile:
>
> TH1D * hist = new TH1D("hist", "histogram", 100,-1,1);
> TMapFile * m = TMapFile::Create("mapfile", "RECREATE", 100000, "test");
> m->Add(hist, "hist");
> m->Update();
> m->Close();
>
> Calling m->Update() causes segmentation violation.
> I've read an older issue refering to this problem where ommiting of
> m->Close() was suggested as a solution. Well, this doesn't help in my
> case.
>
> cheers
> Boris
>

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640
Received on Mon Aug 10 2009 - 14:28:48 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 10 2009 - 17:50:02 CEST