From a59c9dddec911a9fc54aa760aaa6284b9a889675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Thu, 21 Sep 2006 17:05:58 +0000 Subject: [PATCH] Fixed SD2-1096: Moving mouse over com object whilst debugging unit test throws a ComException; Error message for objects in wrong AppDomain git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1834 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Debugger.Core/Project/Src/Variables/Evals/Eval.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs index 4bdf19136e..591541a29b 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs @@ -165,7 +165,9 @@ namespace Debugger } catch (COMException e) { if ((uint)e.ErrorCode == 0x80131C26) { throw new EvalSetupException("Can not evaluate in optimized code"); - } else { + } else if ((uint)e.ErrorCode == 0x80131C28) { + throw new EvalSetupException("Object is in wrong AppDomain"); + }else { throw; } }