Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoid
Message
De
23/02/2005 11:19:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
23/02/2005 11:09:07
Thomas Wang
Cts Int'l Transportation Co., Ltd.
Shanghai, Chine
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Re: Avoid
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00989655
Message ID:
00989664
Vues:
9
>I have a compiled program running on XP, it is dead, I want to kill it in Windows Task Manager, the program propmts: Can not quit Visual Foxpro.
>Has any guy give me a good idea to avoid the prompt message ?

This means that apparently, Visual FoxPro is still responding.

What I think you are missing is an ON SHUTDOWN, to do a normal shutdown. ON SHUTDOWN tells VFP what to do if you press the "x" in the upper-right corner, for example, or try to close your program from the Task Manager.

A typical command might look like this:
on shutdown quit
Or, if you need to do some cleanup:
on shutdown do cleanup
cleanup.prg would include the code for a clean exit.

The ON SHUTDOWN command would go before the READ EVENTS.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform