Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange problems closing application
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00093921
Message ID:
00093947
Views:
26
>Hi to all,
>
>I've stranges problems when I close the application using the "X" button. Before to release the application object I loop to close each form but sometime a form has strange errors like : alias not found, object (like button) does not exist.
>Every form close well if I close it using the a close button on the form ( on the click I do a RELEASE THISFORM.
>
>Any idea on what I'm doing wrong ?
>Some experiences with closing events and method and how I can use those to do my operation (like save each modify or realign a table etc.etc) and what I haven't to do ( ie. in event X cannot use THISFORM.methodY() because maybe the form's object it's destroyed etc.)

Another way to deal with this is put in each form's Queryunload to control the closing process something like:

Nodefault && stops automatic close process
...&& then do any necessary form cleanup work
this.cmdclose.click && close by your own code
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform