GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » memory leaks
Re: memory leaks [message #9360 is a reply to message #9357] Wed, 09 September 2009 16:02 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *ext.kfa-juelich.de
Here a summary cut&paste:

Clear():
Clear the clones array. Only use this routine when your objects don't allocate memory
since it will not call the object dtors.


Delete():
Clear the clones array. Use this routine when your objects allocate  memory (e.g. objects
inheriting from TNamed or containing TStrings  allocate memory).
If not you better use Clear() since if is faster.


As far as I have understod, the usage of clear or delete depends on the data members of the object itself

[Updated on: Wed, 09 September 2009 16:03]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mac OS X 10.6 Snow Leopard
Next Topic: [Release] Analysis: Rho & PidCandidate
Goto Forum:
  


Current Time: Sat Oct 05 09:08:51 CEST 2024

Total time taken to generate the page: 0.00784 seconds