Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dangling Object Reference Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00810002
Message ID:
00812204
Vues:
16
Hi Simon,

Would it work if you move the code from the property into the Init of the dialog?

>Hi
>
>In the class designer I set the a property called oBizObj of a dialog window to:
>
>=Screen.ActiveForm.Controls(1).oBizObj
>
>So that when the dialog is displayed it will use the Business of Object of the calling form.
>
>However, when I close the dialog and then try to close the calling form, the calling form does not release despite the fact that I null the oBizObj property when I close the dialog window.
>
>If I set the oBizObj property to:
>
>Screen.ActiveForm.Controls(1).oBizObj
>
>and then use Eval(myDialog.oBizObj) everything works fine. Can anyone explain this? Is this somehow related to how VFP caches the class definitions?
>
>Thanks
>Simon
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform