Application.ThreadException issue

A

Andy

Hi,

This may seem obvious, but I just want to be sure.

I have my Program.cs, which executes a bunch of code prior to
executing Application.Run( mainForm ).

My question is this; right away, I hook an event handler to
Application.ThreadException. If an exception occurs BEFORE
Application.Run, should the event handler still fire if there's an
unhandled exception? Or will it only fire once Application.Run is
invoked?

Thanks
Andy
 
J

Jeremy Shovan

Not sure but you can always try throwing an exception or performing a divide
by 0 after you hook up the event but before you call Application.Run();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top