Why does catch(TException) handling block behaviour differ under the debugger after installing Visual Studio 2008?

前端 未结 2 1420
生来不讨喜
生来不讨喜 2021-01-02 08:01

Consider the console application below, featuring a method with a generic catch handler that catches exceptions of type TException.

When this console ap

相关标签:
2条回答
  • 2021-01-02 08:27

    This is a known issue that is caused by a bug in the CLR. It has been fixed in CLR 4.0 (as yet unreleased).

    Thanks to JaredPar for the assistance with this. See comments on his answer for more detail and link to the original bug report on Microsoft Connect.

    0 讨论(0)
  • 2021-01-02 08:45

    That's weird indeed. I verified the problem also exists with VB.Net so it's not a C# specific issue. It will need to be confirmed by the core debugger team but it does look like a bug.

    Please file a bug on Connect and post the bug number as a comment to my OP so that I can make sure it gets routed to the correct team.

    0 讨论(0)
提交回复
热议问题