G
Grant Morgan
Hi
I'm relatively competent at windows forms programming in net 2.0 (VS 2005),
however, I've never really gotten my hands dirty with exception handling
until now...
My application is using a startup form (not a sub main) for a windows forms
project, with application framework enabled.
I have found the MyApplication_UnhandledException event, and have used this
to report on any unhandled exceptions. However, it only works if I run the
application in Release mode (ie. not debug mode) and without the VSHost
process (ie. running it outside of VS 2005).
I've been told the way around this is to set the
Application.SetUnhandledExceptionMode - can I only do this from a Sub Main
startup, or can I somehow use the MyApplication_Startup event?
Sorry if my description is all over the place - my brain is a bit "googled"
after reading up on exception handling....
Cheers
Grant
I'm relatively competent at windows forms programming in net 2.0 (VS 2005),
however, I've never really gotten my hands dirty with exception handling
until now...
My application is using a startup form (not a sub main) for a windows forms
project, with application framework enabled.
I have found the MyApplication_UnhandledException event, and have used this
to report on any unhandled exceptions. However, it only works if I run the
application in Release mode (ie. not debug mode) and without the VSHost
process (ie. running it outside of VS 2005).
I've been told the way around this is to set the
Application.SetUnhandledExceptionMode - can I only do this from a Sub Main
startup, or can I somehow use the MyApplication_Startup event?
Sorry if my description is all over the place - my brain is a bit "googled"
after reading up on exception handling....
Cheers
Grant