Why VS2010 stops on COMException if exists a try catch and the exception settings is set to not throw on first-chance

StackOverflow https://stackoverflow.com/questions/12210869

سؤال

I have the following code:

try
{
    ((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).EndInit();
}
catch
{
}

And I have the Exception dialog configured to not stop on anything handled:

enter image description here

Anyway VS stops on the following exception and execution cannot continue. Any ideas?

enter image description here

هل كانت مفيدة؟

المحلول

In the settings section for the debugger there is a checkbox for "Break when exceptions cross AppDomain or managed/native boundaries", that is why the catch is not being used.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top