Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with pointing to parent?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00779176
Message ID:
00779183
Views:
23
>If the object is being added with a This.AddObject call, it should have a Parent reference on it.
>>
>>If the object is being added with This.Property = createobject(), it would not have a Parent reference.
>>
>>The only thing I have seen, is in a release, it may not be able to release properly with a manual link to This.Property = ThatObject
>>
>>Tracy

>
>I'm doing:
>
>THIS.oLineItems = NEWOBJECT("classname")
>THIS.oLineItems.ParentObj = THIS
>
>It releases as far as me not being able to see a reference to it in the debugger anymore. Whether that is "properly" or not, I don't know. Whether there is still any hidden link to it, I don't know. That was my reason for posting this. :)
>
>Thanks,
>
>Michelle

If the link wasn't clearing, it would not realease. VFP is pretty good at cleaning up memory. but you might check SYS(1016) for memory usage before and after.

Looks like your set to go though.

Tracy
Tracy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform