Hi Steve,
What holds your application. IOW, do you issue a READ EVENTS or are you in a eternal loop? If you issue a READ EVENTS, you only need a CLEAR EVENTS, and the application will fall through. (Just a side point.) I assume no READ EVENTS because then your ON SHUTDOWN should work just fine with a QUIT or CLEAR EVENTS. (Althought QUIT is superflous.) If you have a loop, perhaps a DOEVENTS is needed to look at the Windows events.
>We are designing an application that will run in background with no user input. It is executed in Windows NT startup directory, and we need to get it to automatically close when windows is shut down. We are trying to use the ON SHUTDOWN command to call a prg which contains the quit command but this just hangs the PC when shutdown is run.
>
>Any help appreciated.
>
>Steve
Charlie