>> How about using TApplication.OnException to trap any
>> unhandled exceptions
>> and release the Atom.  Rather than having the Atom Form
>> dependant add your
>> own exit procedure to trap application exit and if the atom
>> exists remove it.

>> So normal termination the exit procedure will release the
>> Atom and abnormal
>> temination the OnException trap will release the Atom.

>What happens when you program locks up and the user kills it from the NT
>Taks manager?  I suspect there is nothing you can do to trap this case.


<IMHO>
I might question why an application should 'lock up' without throwing an
exception since it then implies an infinite loop  or processing intensive loop
failing to give user feedback during processing.
<IMHO>

Even so, perhaps it is possible to supply a message handler for the
'close application' sent by windows pior to forcing a shutdown.

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to