Browse Source

Fixed Forum-31266: Intercepting FileIOPermission deny exception.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6254 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 16 years ago
parent
commit
da4232d08f
  1. 4
      src/AddIns/Debugger/Debugger.Core/Thread.cs

4
src/AddIns/Debugger/Debugger.Core/Thread.cs

@ -223,6 +223,10 @@ namespace Debugger @@ -223,6 +223,10 @@ namespace Debugger
// 0x80131C33: Interception of the current exception is not legal
if ((uint)e.ErrorCode == 0x80131C33)
return false;
// 0x80004005: Error HRESULT E_FAIL has been returned from a call to a COM component.
// Use this to reproduce: new FileIOPermission(PermissionState.Unrestricted).Deny();
if ((uint)e.ErrorCode == 0x80004005)
return false;
throw;
} catch (ArgumentException) {
// May happen in release code with does not have any symbols

Loading…
Cancel
Save