Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release parent from child object
Message
De
05/11/2003 07:53:07
 
 
À
05/11/2003 06:21:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00846374
Message ID:
00846386
Vues:
16
Hi John

>Hi,
>I have problem of releasing/close parent from child objects. It will cause Illegal operation/Fatal error.
>
>Case:
>goApp object contain a timer object. Timer object will check for "something" to determine whether shutdown the application automatically or not. If TRUE, timer will call goapp. from timer event.

If you are simply calling the goApp variable then your child object is not specifically binding to the parent, are you actually referencing the goApp variable from a property from within the timer?

2-way association doesn't go down well at all in VFP, if you can avoid it, then I would strongly advise it, otherwise you end up having to release the child object from the parent, from the child.

Kev
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform