A
Armin Zingler
Teemu said:
Thanks for the links.
Yesterday I was sure that there is no relation between these two
things but that KB Article changed my opinion. That article states
that the problem shouldn't exist in VS2005 but it is not true.
This article describes it's the same with all Frameworks:
http://support.microsoft.com/kb/324653
It's really a pain..., IMO. The "cause" section describes what happens but
no reason is given. It's just unwanted behavior and there is no option to
change it. I really have to catch it an rethrow it. :-( I have no problem
with this option but I don't see why I'm forced to live with this behavior.
Well, I have to. I mean, the whole principle - which is a basic principle in
the Framework - of exception propagation is broken by this "special
feature".
I tried to create that app.config file in VB 2008 and I pasted this
code in it:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Now that Try-Catch block works as expected without debuggers and
events related to ThreadException. If I change the boolean to False,
I get the same functionality as described yesterday.
Do you mean the catch block catches the exception now? But
that "should not" happen. I'm confused.
Armin