Hi, I know this ubject has been discussed many times but I'm a little bit confused by the behaviour of gROOT->Reset(). It is supposed to clean all global variables in the interpreter environment. But when I build a new object of mine : vd = new VFrDataBase("demoDB.root") and issue a gROOT->Reset() after this, for example by running a script containing gROOT->Reset() as the first line, a few times, it is obvious that the object vd, though removed from the interpreter environment, and though global, is not deleted. The memory is not freed and everything happens as if there was a memory leak. What is happening ? When is an object effectively deleted by a gROOT->Reset() ? I do understand the necessity to not delete some objects (such as a Canvas for example) but how do I specify that an object can be deleted ? I tried SetBit(kCanDelete) to no avail. Any explanations/hints ? Cheers Damir -- ===================================================================== | Damir Buskulic | Universite de Savoie/LAPP | | | Chemin de Bellevue, B.P. 110 | | Tel : +33 (0)450091600 | F-74941 Annecy-le-Vieux Cedex | | e-mail: buskulic@lapp.in2p3.fr | FRANCE | ===================================================================== mailto:buskulic@lapp.in2p3.fr
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET