You have two chioces if I understand the problem correctly. 1) Don't
include try catches and let the exception propogate up to one that you wrap
around main 2) Rethrow your exceptions in the local blocks so they
propogate back up the stack. Another alternative is to create your own
subclassed exception(s) and call them, in that/those classes, raise whatever
event you want. This is a cumbersome approach and probably isn't worth it,
but it may suit your needs. More than likely you'll want to opt for one of
the first two methods.. probably the second.
HTH,
Bill
"Rakesh" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
Hi,
I would like a method to get invoked whenever an
exception is thrown in my Main thread, even if it is
caught. Is there any automated way to do this without
calling it explicitly in all catch blocks?
Thanks in advance
Rakesh