General information
Category:
Object Oriented Programming
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only