From 158ad95cb96c5dbc6303a756118634cfa0c72c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Sun, 1 Aug 2010 09:14:44 +0000 Subject: [PATCH] Hack to ignore unloaded interfaces (will fix properly later) git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6341 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- src/AddIns/Debugger/Debugger.Core/MetaData/DebugType.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Debugger/Debugger.Core/MetaData/DebugType.cs b/src/AddIns/Debugger/Debugger.Core/MetaData/DebugType.cs index 542e283938..51ce0b0b60 100644 --- a/src/AddIns/Debugger/Debugger.Core/MetaData/DebugType.cs +++ b/src/AddIns/Debugger/Debugger.Core/MetaData/DebugType.cs @@ -1276,7 +1276,11 @@ namespace Debugger.MetaData foreach(InterfaceImplProps implProps in module.MetaData.EnumInterfaceImplProps((uint)this.MetadataToken)) { CorTokenType tkType = (CorTokenType)(implProps.Interface & 0xFF000000); if (tkType == CorTokenType.TypeDef || tkType == CorTokenType.TypeRef) { - this.interfaces.Add(DebugType.CreateFromTypeDefOrRef(module, false, implProps.Interface, null)); + // TODO: Fix properly + try { + this.interfaces.Add(DebugType.CreateFromTypeDefOrRef(module, false, implProps.Interface, null)); + } catch (DebuggerException) { + } } else if (tkType == CorTokenType.TypeSpec) { this.interfaces.Add(DebugType.CreateFromTypeSpec(module, implProps.Interface, this)); } else {