I would like to know what people are using for effective exception handling
in windows forms applications?

I ideally want to log all exceptions raised by my application without try
catch blocks in every method.

The only way I can seen to do this is by subscribing to both the
Application.ThreadException and the AppDomain.UnhandledException.

Any suggestions on what the best way to achieve this?

Many thanks

DT

Re: Effective exception handling by Sijin

Sijin
Tue Oct 19 22:16:30 CDT 2004

Yes that is the preferred way to globally catch exceptions. Infact here
is a nice article which talks about just that
http://www.codeproject.com/dotnet/ExceptionHandling.asp and here is
another nice dialog that you can use
http://www.jasonbock.net/errordialog.html

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

DT wrote:
> I would like to know what people are using for effective exception handling
> in windows forms applications?
>
> I ideally want to log all exceptions raised by my application without try
> catch blocks in every method.
>
> The only way I can seen to do this is by subscribing to both the
> Application.ThreadException and the AppDomain.UnhandledException.
>
> Any suggestions on what the best way to achieve this?
>
> Many thanks
>
> DT
>
>
>
>

Re: Effective exception handling by DT

DT
Wed Oct 20 13:09:45 CDT 2004

Many Thanks

"DT" <dt@nospam.co.uk> wrote in message
news:41756a64$0$21921$65c69314@mercury.nildram.net...
>I would like to know what people are using for effective exception handling
>in windows forms applications?
>
> I ideally want to log all exceptions raised by my application without try
> catch blocks in every method.
>
> The only way I can seen to do this is by subscribing to both the
> Application.ThreadException and the AppDomain.UnhandledException.
>
> Any suggestions on what the best way to achieve this?
>
> Many thanks
>
> DT
>
>
>
>