Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unable to quit VFP
Message
De
22/07/1998 07:03:59
 
 
À
21/07/1998 12:31:44
John Hoover
Shepherd Software, Inc.
Tallahassee, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00119738
Message ID:
00120076
Vues:
18
>Occasionally I am unable to QUIT FoxPro. I have checked to be sure all procedures are canceled and all files are closed. I click on File/Exit and type in QUIT--it won't quit. The only way to terminate is with the 3-finger salute, which Win95 processes OK, but this is not the preferred method for quitting.
>

I'd try Edward Pickman's solution first, but, if you use certain WinAPIs, you may not be able to QUIT cleanly (I've run into this a few times.) There is a solution, but it's a bit ugly - it involves replacing all occurances of QUIT or CANCEL in the compiled application with calls to the following piece of code, which invokes the Win32 API ExitProcess():
CLEAR EVENTS
CLOSE ALL
CLEAR ALL
FLUSH
DECLARE ExitProcess IN Win32API INTEGER nExitCode
=ExitProcess(0)
About the only good thing about this change is that ExitProcess() can return a value other than 0 to the operating system when VFP shuts down, making error-level controlled interfaces easier.

hth,

Ed
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform