views:

92

answers:

2

Probably staying late fixing a few bugs tonight, but maybe SO can help me out. Does anyone know if there's a way to 'track' where some ignored exceptions are occurring?

Basically I'm finding some System.OverflowExceptions in System.Drawing which are causing some graphics to not get painted (red X box syndrome).

Problem is, I can only tell this from the Debug window, and can not for the life of me find where this is being thrown. I'm guessing the coder of where this is happening wrote a

try{ something } finally { blah }

or...

try {something } catch { //Blah blah blah }

If I'm SOL as far as that goes, maybe somebody might know what methods in System.Drawing may cause a StackOverflow excption...

Thanks!

A: 

You may be able to use FxCop/StyleCop to get what you want. I'm not sure if you would need a custom rule to find your try/finally scenario.

Forgotten Semicolon
+8  A: 
0xA3