> When something crashes and dumps you to the command window, the ON SHUTDOWN remains in effect. If it is in main.prg and the program did a SET PROCEDURE TO to clear it, when you try to quit VFP you get an error. Then you have to remember to do ON SHUTDOWN yourself.
>
> Using a LOCAL variable to hold a class lets ON SHUTDOWN take care of itself when the app stops. I don't have to look after it manually.
>
> Mike Yearwood
>
www.foxridgesoftware.com> President: Toronto Ontario FoxPro User's Group
Now, Mike, you lost me. Could you elaborate some more here? In particular - on the relationship between ON SHUTDOWN and "LOCAL variable to hold a class"? I have to admit I never desined classes in VFP myself, just used and modified the existing ones (does "Espia" ring any bells?) So, I fail to see how the ON SHUTDOWN can be issued in a custom class that is instantiated as an object with its handle stored in a LOCAL memvar (even if it's Main.Main)?
Regards,
Ilya