Hi Hugo.
Yes, I've got the Shutdown event, it's in the framework I use, which is Codemine V7. Codemine takes care of closing forms and taking care of all stuff.
When Windows starts its shutdown procedure, my application does shutdown properly, but then by some reason Windows doesn't.
I just wish it would die peacefully ...
Thanks for your attention.
Ivan
>Ivan,
>
>Do you have an OnShutDown event? Usually our main programs have something like:
>
>
>
>* All needed settings for example:
>set deleted on
>set exact off
>* and so on, then
>
>on shutdown do exit_to_windows
>
>* then do the main form/menu etc
>
>do form myForm
>read events
>
>exit_to_windows()
>
>
>function exit_to_windows()
>
>* Clean up code
>clear dlls
>release all
>clear all
>close all
>quit
>
>
>When windows shuts-down, the program should end cleanly
Ivan