Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On shutdown not working for top level
Message
De
02/07/1999 17:02:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00236889
Message ID:
00237053
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform