I have read previous discussions on this, but I don’t seem to have an answer (sorry if I am just missing something). During the course of writing standalone C++ applications based on ROOT, there are various times that one does “new A”, where “A” is one of the ROOT classes. When should the programmer also do “delete A”? Thanks.
It seems you already studied a bit this question. The short answer is “when the object is not needed anymore”… but that does not help… Do you have some concrete case ? what kind of difficulties do you encounter ?