Browse Source

Fixed Forum-8640(asl): 'this' may not be available at native IP

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1533 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 19 years ago
parent
commit
a6e5d834e7
  1. 10
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs

10
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs

@ -114,7 +114,17 @@ namespace Debugger @@ -114,7 +114,17 @@ namespace Debugger
if (this.HasExpired) {
return new UnavailableValue(debugger, "Function has expired");
} else {
try {
return new ObjectValue(debugger, CorILFrame.GetArgument(0), ContaingClass);
} catch (COMException e) {
// System.Runtime.InteropServices.COMException (0x80131304): An IL variable is not available at the current native IP.
// See Forum-8640
if ((uint)e.ErrorCode == 0x80131304) {
return new UnavailableValue(debugger, "Not available in the current state");
} else {
throw;
}
}
}
}
}

Loading…
Cancel
Save