Browse Source

Fixed "0x80131C33: Interception of the current exception is not legal"

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5299 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 16 years ago
parent
commit
b766057c4d
  1. 6
      src/AddIns/Debugger/Debugger.Core/Thread.cs

6
src/AddIns/Debugger/Debugger.Core/Thread.cs

@ -218,9 +218,11 @@ namespace Debugger @@ -218,9 +218,11 @@ namespace Debugger
((ICorDebugThread2)this.CorThread).InterceptCurrentException(this.MostRecentStackFrame.CorILFrame);
} catch (COMException e) {
// 0x80131C02: Cannot intercept this exception
if ((uint)e.ErrorCode == 0x80131C02) {
if ((uint)e.ErrorCode == 0x80131C02)
return false;
// 0x80131C33: Interception of the current exception is not legal
if ((uint)e.ErrorCode == 0x80131C33)
return false;
}
throw;
} catch (ArgumentException) {
// May happen in release code with does not have any symbols

Loading…
Cancel
Save