Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C5 error when exiting app in develoment mode
Message
From
27/01/2001 17:26:19
 
 
To
27/01/2001 14:58:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00464802
Message ID:
00469442
Views:
37
>If it's hidden, then the thisform.release in my close method is not actually working. I've stepped through the code, and it definitely hits that line. If there are no object references, how can it still be there?

Somewhere outside the form object is a reference to the form object; since it still exists, the form never really destroys itself, and you're left with the inevitable dangling object ref. Classically, launch non-modal form1, and from within non-modal form1, open non-modal form2, passing a reference to form1. form2 saves the reference to a form property. Non-modal form1 tries to release itself, but the object ref from form2 sustains it, so it never completes it's release...

>Deri
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform