-----Original Message-----
Recently, a thread appeared which asked how to create a "catch all" method
for when
an exception occurs within a program. The solution given only works for
Windows Forms applications, as far as i can tell, is it possible to do the
same with a console application?
Simon.
.
Vectored Exception Handling is a new exception mechanism
introduced in windows XP that allows you to catch
exceptions in a "Thread Independent" manner. See:
http://msdn.microsoft.com/msdnmag/issues/01/09/hood/default
.aspx
for more information. You can also add your own "backstop"
to your application with by calling
SetUnhandledExceptionFilter on your process which will
allow you place a handler at the bottom of the exception
stack to execute when any exception propagates out far
enough. See:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/debug/base/setunhandledexceptionfilter.asp for more
information.
Jackson Davis [MSFT]
--
This posting is provided "AS IS" with no warranties, and
confers no rights.
Use of included script samples are subject to the terms
specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all
responses to this
message are best directed to the newsgroup/thread from
which they
originated.