From 49ccffef87db77ce2bb7422121e8045732ebe465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Tue, 8 Dec 2009 19:42:40 +0000 Subject: [PATCH] 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 --- .../Debugger/Debugger.Core/Project/Src/Control/Thread.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Thread.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Thread.cs index ed0cfcb2fa..fe812db873 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Thread.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Thread.cs @@ -229,9 +229,11 @@ namespace Debugger this.CorThread.CastTo().InterceptCurrentException(this.MostRecentStackFrame.CorILFrame.CastTo()); } 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