exception handled silently

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
 
J

J_Max

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
 

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