Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Exception catching and JIT

I put in something in my application to pop up a new form in case of an unhandled exception, a sort of "Hooray, you found a bug" thing which gets a bit of user input and logs the error.  But sometimes it doesn't work; instead I get the JIT box.

In theory any place that could get an exception is enclosed in a top-level Try/Catch routine.  So why do I get the JIT thing instead of my custom form?

Kyralessa
Tuesday, April 19, 2005

There are known issues with Application.ThreadException and AppDomain.UnhandledException that are (supposedly) fixed int 2.0.

There's stuff all over the web about this mess. Like this...

http://groups-beta.google.com/group/microsoft.public.vsnet.ide/browse_thread/thread/c68d724d9acdc1d9/9ce199646826cfd1?q=c%23+JIT+UnhandledException&rnum=1#9ce199646826cfd1

Jeff Mastry
Tuesday, April 19, 2005

Kyralessa,

You might want to read the section on "Unhandled Exceptions" in my recent WinDev talk. It discusses your problem as well as several others related to WinForms apps.
http://www.sleeksoft.co.uk/public/techblog/articles/20041105_2.html

Mark Pearce
Friday, April 22, 2005

To clarify - WF9 is the slide deck and demo code that you want.

Mark Pearce
Friday, April 22, 2005

Thanks for the link, Mark; that's helpful indeed.  Though there are a few spots where I wish I could have heard the talk instead of just having the slides.  Was it recorded or transcribed anywhere?

Kyralessa
Friday, April 22, 2005

If you send me an email address, I'll email you a copy of the slide desk with full notes. Hopefully that will help.

Mark Pearce
Monday, April 25, 2005

*  Recent Topics

*  Fog Creek Home