Owing the following "program" :
file = new TFile...
tree = new TTree("EM","EM particles",1000000) ;
gEvent = new RBEvent ;
b = tree->Branch("event","RBEvent",&gEvent,20000,1) ;
...
tree->Write() ;
file->Close() ;
delete file ;
delete b ;
delete tree ;
delete gEvent ;
I got a SEGV on the delete b.
Is there a special way (or order) to delete pointers on branches or
trees.
Thanks.
-- APHECETCHE Laurent (mailto:aphecetche@ganil.fr) GANIL, B.P. 5027, 14076, Caen Cedex 5, France Vox: +33 (0)2 31 45 45 85 - Fax: +33 (0)2 31 45 46 65 WWW: http://ganp03.in2p3.fr/nof/ & (perso.) http://www.mygale.org/~p0mp0n