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