On 2007-11-13 01:27:47 -0800,
(E-Mail Removed) said:
> [...]
> The problem though is that if I create a thread as follows, exceptions
> are not being handled by ThreadExceptionHandler -
>
> [...]
> Why not?
Just to be clear: the Application.ThreadException event doesn't offer a
way to _handle_ an exception. You'll be notified of the exception, but
handling implies that you've successfully caught it and the thread can
proceed normally.
As for why your event handler isn't being called, I don't really know.
Have you called Application.SetUnhandledExceptionMode to enable the
event? I'm not sure what the configuration file default is, but it
could be that it's simply set currently to not raise the
ThreadException event.
Pete