>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