>Hi Hilmar,
>
>>
A much simpler solution is to throw your users out when you need to do maintenance. Have a Timer in your application check every 2 minutes for the existence of a file with a name like "maintenance.tmp". If the file is found, call your applications OnQuit() method, or whatever it is called.>
>I was searching here in UT for a solution to this problem and found your idea great yet simple. I successfully implemented it in my apps.
>
>Thanks!
>
>Um abraço,
>
>Fernando
OK, I am happy that that it works for you. Actually, it works in principle <g>. In my case, it worked every time I needed it, which is good enough for my purposes.
However, I am not sure, but I think that if the user left a MessageBox() open, the Timer object will not fire.
Worse, if the user left the form with pending changes (and went to eat lunch), a call to goProgram.OnQuit() (goProgram is the application object in Visual Extend) will - of course - ask the user whether he wants to save the changes. It will not quit immediately.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)