Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP3.0 'ON SHUTDOWN' funny
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00229219
Message ID:
00229221
Views:
26
>I have an on shutdown procedure that only works when the user is not BROWSING records on a form that was called from another form. The user can activate frmBrowse for just about any table depending on the activeforms current alias.
>Shutdown is OK even if browsing a table from the main form, but if a form is called (say Customer Maintenance) and then a Browse is activated on the current Customers - the shutdown fails.
>
>*on shutdown calls xit
>PROCEDURE XIT
> RELEASE WINDOW
> Clear WINDOWS
> CLEAR EVENTS
>
>Line by Line observation reveals err at 'clear events'
>The Program has performed an illegal operation and will be shutdown.
>
>That's almost funny!?!?
>Has anyone else seen this happen? What to do???

In a previous thread someone mentioned that all objects might not be released. Text is below

+++++++++++++++++
There are currently some odd problems with VFP failing to properly
release objects during its shutdown processing ... most noticably
activex controls and the like ...

Try adding an ON SHUTDOWN function that includes
RELEASE ALL
CLEAR ALL
SET PROCEDURE TO
SET CLASSLIB TO

type statements to ensure that all objects and classes
have been physically released before VFP tries to
release them itself.
++++++++++++++++
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform