Information générale
Catégorie:
Programmation Orientée Object
Titre:
Problem with pointing to parent?
I have an object that has as one of its properties a pointer to a line item object. When I add the line item object, I set a property on there that points to the parent because it sometimes needs to get information from its parent.
I haven't had any problems I can pin on this arrangement so far, but when I was looking in the debugger for something else, it occured to me that I've created a circle. The parent points to the child which points to the parent which points to the... I actually drilled down a ways in the debugger.
Is there any problems with this that might come up? As I said, it seems to be working with no errors. I'm just worried there may be hidden problems like using too much memory or sumsuch.
Thanks,
Michelle
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement