Home All Groups Group Topic Archive Search About

catching all unhandled exceptions

Author
14 Feb 2006 7:40 PM
NickP
Hi there,

    I'm trying to attach to  exception handlers application wide so that I
can handle them all myself.  But some still seem to slip past, so far im
attaching to...


    AppDomain.CurrentDomain.UnhandledException

    &

    Applicaion.ThreadException

    Am I missing some?  Thanks in advance!

Nick.

Author
14 Feb 2006 11:49 PM
AMercer
>     I'm trying to attach to  exception handlers application wide so that I
> can handle them all myself.  But some still seem to slip past, so far im
> attaching to...
>     AppDomain.CurrentDomain.UnhandledException
>     Applicaion.ThreadException

You are doing what I do, and I have had no problems.  Be advised, O'Reilly
in ".Net Gotchas" warns about some exceptions getting lost, namely from
thread-pool threads where a Delegate and/or Timer object is involved.  The
book pertains to FW 1.1.