Hi Weijun,
There are many ways to do so. The best choice depends on your application, on which type of objects you are using, on the purpose for which you use those object, on the length of time you need those objects, etc....
In order for us to be more precise, you will need to provide more details on your application.
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On Behalf Of Weijun Guo
Sent: Wednesday, August 16, 2006 2:35 PM
To: RootTalk
Subject: [ROOT] heap object in Root macro
Greetings,
I am making some utility macros for some routine work. I tend not to use heap object. But if I do, and run the maroes for many times. Do those objects, created in previous runs, cause memory leak? Is there a convenient way to prevent this if necessary?
Thanks,
Weijun
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET