Exception handling again

A

Armin Zingler

Hi,

when does the IDE catch an exception? I can start my
application (from the IDE with the debugger attached)
and cause a TargetInvocationException. Sometimes it is
caught by the debugger, sometimes the app just quits.
In both cases, the exception is displayed in the output window.
I'm unable to find out when it is caught and when not. Any clue?
 
A

Armin Zingler

Am 14.01.2011 15:50, schrieb Armin Zingler:
Hi,

when does the IDE catch an exception? I can start my
application (from the IDE with the debugger attached)
and cause a TargetInvocationException. Sometimes it is
caught by the debugger, sometimes the app just quits.
In both cases, the exception is displayed in the output window.
I'm unable to find out when it is caught and when not. Any clue?

I can [x] check the exception in the Exceptions dialog, then
it is always caught, but even if the entry is unchecked, the IDE
should behave consistently because I can not check all exceptions
in the Exceptions dialog.
 
A

Armin Zingler

Am 14.01.2011 15:55, schrieb Armin Zingler:
Am 14.01.2011 15:50, schrieb Armin Zingler:
Hi,

when does the IDE catch an exception? I can start my
application (from the IDE with the debugger attached)
and cause a TargetInvocationException. Sometimes it is
caught by the debugger, sometimes the app just quits.
In both cases, the exception is displayed in the output window.
I'm unable to find out when it is caught and when not. Any clue?

I can [x] check the exception in the Exceptions dialog, then
it is always caught, but even if the entry is unchecked, the IDE
should behave consistently because I can not check all exceptions
in the Exceptions dialog.

If I'm fortunate that the IDE breaks at the exception and if
I open the "details" for the exception, it just says
"Fehler bei der Eigenschaftsauswertung" (which means "error evaluating property"),
so I am unable to examine the exception. Why that?

http://www.abload.de/image.php?img=exceptiondetails4mak.png
 

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