> 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.

Tim

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

Reply via email to