>Hi,
>
>I have a VFP6 application that runs as a service at Windows(98) startup. In other words in the system tray. However when I shutdown windows I get a message like "Cannot quit Foxpro" and the program is not cleared from memory.
>
>How can I avoid this behaviour ?
In your VFP6 application do you have an On Shutdown Routine?
Inside of it you can do all your clears to memory and events or whatever.
Take a look at the On ShutDown in the help and see if that does not help you here.
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope