Hello rooters,
I'm not sure about the follwing:
---
TClonesArray c* = new TClonesArray("MyClass", 100);
for (int i=0; i<100; i++) new ((*c)[i]) MyClass;
[...]
delete d;
Do I have to call this, too?
for (int i=0; i<100; i++) delete (*c)[i];
---
And something different:
---
TFile *file = new TFile(...); // open a file
TTree *tree = new TTree(...); // create a tree
TBranch *branch=tree->Branch(...); // create a branch
[...]
file->Write();
delete file; // close the file
Do I have to call also:
delete tree;
delete branch;
----
Thanks a lot,
Thomas.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:05 MET