Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dangling object reference
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Dangling object reference
Divers
Thread ID:
00199740
Message ID:
00199740
Vues:
51
In the init of a modal form, I am storing a reference to the callng form in ThisForm.oCallingForm. When I exit the modal form, I set the ThisFrom.uRetval and Hide the form. I am running into a situation where the datasession is not releasing and it seems ThisForm.oCallingForm is creating a dangling object reference.

If in the Init of the modal form I create a PUBLIC variable called poCallingForm and store a reference to the calling form, I can RELEASE poCallingForm on exit of the modal form and everything works great.

My question is, how do you RELEASE ThisForm.oCallingForm? I tried RELEASE ThisForm.oCallingForm, but VFP says it has to be a varaible or an array. Any help is apprecaited.

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform