>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)