Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On shutdown not working for top level
Message
From
02/07/1999 17:02:49
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00236889
Message ID:
00237053
Views:
10
Chad,

Clicking on the x in window fires the QueryUnload event and not the Release method and none of these will Quit VFP unless you explicitly call Quit. If you are using Quit in a form to fire ON SHUTDOWN, try ptting it in the form's Unload event.

Also, as Sylvain indicated, you need to put CLEAR EVENTS somewhere (in your ON SHUTDOWN routine). You do have a READ EVENTS somewhere, right?

Is there a reason for your top level form being modal?

>I have a top level form that runs modal. The vfp window is hiden in the config.fpw with screen = off. My problem is that when a user closes the app by clicking on the "x" in window the shutdown routine is not ran, leaving a copy of the executable behind running in memory.
>
>If a user clicks on a quit button provided in form, on shutdown works properly.
>
>I can always disable the form.closable property to avoid this, but I would rather keep this property enabled if possible.
>
>Any ideas on a solution?
- Jeff
Previous
Reply
Map
View

Click here to load this message in the networking platform