Browse Source

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

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5317 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 16 years ago
parent
commit
49ccffef87
  1. 6
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Thread.cs

6
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Thread.cs

@ -229,9 +229,11 @@ namespace Debugger @@ -229,9 +229,11 @@ namespace Debugger
this.CorThread.CastTo<ICorDebugThread2>().InterceptCurrentException(this.MostRecentStackFrame.CorILFrame.CastTo<ICorDebugFrame>());
} 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