Hi Shane,
this works for me.
On ypur main form add a line : ON SHUTDOWN DO shutdownproc.
Make a .prg called shutdownproc.
Contents :
close tables all
quit
Cheers
Fida
>I have used the VFP 5.0 wizard to create an "application frame only." I would like to completely hide the Foxpro screen, so I thought I would create my main form as a top-level form. I am having problems getting the Shutdown to work right. When I close the form the application object doesn't get released, and if I put a QUIT in the Unload event of the form (which would call the application object's OnShutdown) I get a message about can't clear object in use. I can leave out the clear all but then the application is still active in memory. What am I missing?
>
>Shane
Wannabe FoxPert!!!