From 29ceaafa3ae28a35a04e9d7f8559623f1232aa1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Tue, 8 Dec 2009 19:34:55 +0000 Subject: [PATCH] Backported r5294 - Fixed "Func eval cannot work. Bad starting point. (Exception from HRESULT: 0x80131313)" git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5315 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Debugger/Debugger.Core/Project/Src/Control/Eval.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Eval.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Eval.cs index d7c1ee71f0..b34433a5bd 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Eval.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Eval.cs @@ -130,8 +130,16 @@ namespace Debugger } else if ((uint)e.ErrorCode == 0x80131C22) { // The operation is illegal because of a stack overflow. throw new GetValueException("Can not evaluate after stack overflow"); + } else if ((uint)e.ErrorCode == 0x80131313) { + // Func eval cannot work. Bad starting point. + // Reproduction circumstancess are unknown + throw new GetValueException("Func eval cannot work. Bad starting point."); } else { - throw; + #if DEBUG + throw; // Expose for more diagnostics + #else + throw new GetValueException(e.Message); + #endif } }