This is definitely not worrying too much. It is essential that this
application make every best effort to close down cleanly. If someone shuts
the power off, then clearly there's nothing that can be done...
"John Sun" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Peter Steele wrote:
>> I want to trap any attempts to kill my C# application and so that I can
>> execute shutdown code and let the app die gracefully. How can this be
>> done?
>>
>>
> I think you worry too much, as long as you do the normal cleanup at the
> program exit, it should be fine.
>
> Just imagine how could you trap when people shut down the computer, or
> power off :-)
>
> John
|