Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with pointing to parent?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00779176
Message ID:
00779183
Vues:
24
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform