Dear Rooters,
I have a problem which I don't quite know how to solve.
The thing is, when I try to do the following:
---
TMapFile *mfile = TMapFile::Create("simple.map", "RECREATE",
100000,"test");
TH1F *h1 = new TH1F("h1","Example",100,-4,4);
mfile->Add(h1,"h1");
mfile->ls();
---
I get:
---
Object Class Size
*** Break *** segmentation violation
---
On the other hand, when I try the following:
---
TMapFile *mfile = TMapFile::Create("simple.map", "RECREATE",
100000,"test");
TH1F *h1 = new TH1F("h1","Example",100,-4,4);
mfile->Add(h1,"h1");
mfile->Update();
---
I get:
---
Object Class Size
h1 TH1F 1024
h1 TH1F 1024
---
My question is : why do I end up with two copies in the second case, and
a segmentation violation in the first.
I would like to thank you in advance for any help.
Krzysztof
--
_____________________________________________________________________
Krzysztof Wiktor Zelazowski Email: Krzysztof.Zelazowski@cern.ch
Etudiant technique div.EP |CERN| Tel.: +41 (22) 767 2382
_____________________________________________________________________
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET