From b766057c4d6dd30e5adac14839280077422987f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Sun, 6 Dec 2009 16:46:52 +0000 Subject: [PATCH] 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 --- src/AddIns/Debugger/Debugger.Core/Thread.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/AddIns/Debugger/Debugger.Core/Thread.cs b/src/AddIns/Debugger/Debugger.Core/Thread.cs index 5de4584253..234ff9dfc7 100644 --- a/src/AddIns/Debugger/Debugger.Core/Thread.cs +++ b/src/AddIns/Debugger/Debugger.Core/Thread.cs @@ -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