General information
Category:
Object Oriented Programming
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only