N
Nak
Hi there,
I have a very simple console application that I'm trying to handle the
thread exception on, as I understand it there is no Application object
available to a console application, so I can't use this. Instead you need
to use "Thread.GetAppDomain.UnhandledException", this "works" to a certain
extent but from the look if it you merely get added to a chain of event
handlers, and the runtime is still above you, so I can't use this because
the "unhandled exception" dialog appears *before* my event is even fired.
Does anyone have any other ways of achieving this? I need to be able to
catch *all* unhandled exceptions in a console application within the same
event preferably. Cheers in advance.
Nick.
I have a very simple console application that I'm trying to handle the
thread exception on, as I understand it there is no Application object
available to a console application, so I can't use this. Instead you need
to use "Thread.GetAppDomain.UnhandledException", this "works" to a certain
extent but from the look if it you merely get added to a chain of event
handlers, and the runtime is still above you, so I can't use this because
the "unhandled exception" dialog appears *before* my event is even fired.
Does anyone have any other ways of achieving this? I need to be able to
catch *all* unhandled exceptions in a console application within the same
event preferably. Cheers in advance.
Nick.