exception handled silently

  • Thread starter Thread starter Houston Keach
  • Start date Start date
H

Houston Keach

I was inadvertently accessing a null object in a function called from
the keyup event handler in a form and I was surprised to find that
the application returned control to the form without any interruption,
as if there were a try/catch somewhere catching the exception and
ignoring it. When run in the debugger, as soon a I step through the
offending line of code, I'm back in the form (which BTW is displayed
using ShowDialog and is invoked from a static function in the form
class.

I've searched for a try/catch but can't find one anywhere. Why is
this exception not bubbling all the way up to the default handler?

--Houston
 
Greetings.

Did you ever "really" close the program? I have had a couple of these, that
until the application officially closes, ie: Application.Close(), it won't
display the error.

Best,

J_Max
 
Back
Top