Information générale
Catégorie:
Programmation Orientée Object
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement