Hi, When you create your Tree, there is no file created at this point. ROOT will create a memory-resident Tree. To solve your problem, simply move the line: TFile* f = new TFile("hist.root","RECREATE"); before the line TTree* tree = new TTree("testTree","Test tree"); Rene Brun On Mon, 30 Jun 2003, Dongwook Jang wrote: > Hi, > > I have problem with writing a tree which is generating memory leak. I > made a simple class and used the below constructor: > > TTree::Branch(const char* name, const char* classname, void* addobj, > Int_t bufsize = 32000, Int_t splitlevel = 99) > > In test.C, run() will generate horrible memory occupancy. > root version 3.05/00 are used on linux(redhat 7.3). > > Any comments will be appreciated. > Thank you. > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET