|
|
|
|
@ -24,6 +24,7 @@ namespace Debugger.Wrappers.MetaData
@@ -24,6 +24,7 @@ namespace Debugger.Wrappers.MetaData
|
|
|
|
|
{ |
|
|
|
|
Guid guid = new Guid("{ 0x7dac8207, 0xd3ae, 0x4c75, { 0x9b, 0x67, 0x92, 0x80, 0x1a, 0x49, 0x7d, 0x44 } }"); |
|
|
|
|
metaData = (IMetaDataImport)pModule.GetMetaDataInterface(ref guid); |
|
|
|
|
ResourceManager.TrackCOMObject(metaData, typeof(IMetaDataImport)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ISymUnmanagedReader GetSymReader(string fullname, string searchPath) |
|
|
|
|
@ -36,9 +37,17 @@ namespace Debugger.Wrappers.MetaData
@@ -36,9 +37,17 @@ namespace Debugger.Wrappers.MetaData
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
~MetaData() |
|
|
|
|
{ |
|
|
|
|
Dispose(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void Dispose() |
|
|
|
|
{ |
|
|
|
|
Marshal.FinalReleaseComObject(metaData); |
|
|
|
|
if (metaData != null) { |
|
|
|
|
ResourceManager.ReleaseCOMObject(metaData, typeof(IMetaDataImport)); |
|
|
|
|
metaData = null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public TypeDefProps GetTypeDefProps(uint typeToken) |
|
|
|
|
|