You did make yourself clear, and Markus give you the correct answer.
Take a look at those two events. As well, if you search for the event
names on MSDN you should find at least one article on global event
handling in .NET.
> Maybe I didn't make myself clear. I want this for a windows program. I want
> the equivalent of the Application_Error event from the web side.
[quoted text clipped - 17 lines]
> > hth,
> > Max
> You did make yourself clear, and Markus give you the correct answer.
> Take a look at those two events. As well, if you search for the event
> names on MSDN you should find at least one article on global event
> handling in .NET.
Although, IIRC, these don't catch unhandled exceptions from threadpool
threads. I may be wrong on that.
-- Alan
Bruce Wood - 30 Aug 2006 01:38 GMT
> > You did make yourself clear, and Markus give you the correct answer.
> > Take a look at those two events. As well, if you search for the event
[quoted text clipped - 3 lines]
> Although, IIRC, these don't catch unhandled exceptions from threadpool
> threads. I may be wrong on that.
No, you are right. These two events catch only events from the UI
thread, not from background threads.