Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dereferencing/releasing an object
Message
 
 
À
27/11/2001 20:36:07
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00586488
Message ID:
00586777
Vues:
39
>Thank you very much for taking the time to respond to my post. I apologize my post wasn't clearer.
>
>I believe you correctly understood my question. My parent form called a modal child form passing a parameter object to the child form and back again. Yes, you are quite correct, the parameter object is indeed passed by reference. This, of course, can have significant implications. DO FORM..., here, does not require a TO clause.
>
>My need/interest here is simply that I want to be sure that certain object references are properly released and so I am explicitly releasing them.
>
>I find to remove object loParameters.SearchOptions, rather than the RELEASE command, the syntax I need to use is:
>
>	loParameters.RemoveObject( "SearchOptions" )
>
>(The TO clause was not the culprit here.)
>
>Remaining question: I am still unclear regarding the following scenario:
>
>	oObj = NewObject( "Custom" )
>	oObj.NewObject( "oChildObj", "Custom" )
>
>Given the above, would oObj.oChildObj be correctly released by simply assigning .NULL. to oObj? Do you happen to have insight here?
>
>Thanks again!
>
>Spence

AFAIK (not sure) you need to release child object first. E.g. oOBJ.oChildObj = null
oObj = null
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform