Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release parent from child object
Message
From
05/11/2003 07:53:07
 
 
To
05/11/2003 06:21:00
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00846374
Message ID:
00846386
Views:
15
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
Map
View

Click here to load this message in the networking platform