I am trying all day to make some things straight but nothing helps...
Me and my collegue have built a c++ tree of a class VO. I tend to refer to the structure as a tree and not a simple list because of its complexity.
We have reached the point where a button generates an event that returns the place of the node in the tree and we need to delete that node and everything below it...i think that this is pretty much a standard procedure.
The problem is when i try to make a " delete VOobj; " the object keeps all its pointers i.e. ToParent,ToChild and seems to have deleted only the var "name" . all objects have been created with new...thats why we are investigating "delete"
When we deal with object lists do we delete the objects(is there a way?) or only the pointers that point to the object?
Should we use a destructor? how should it be?