コード例 #1
0
 private ImportedModule ImportModule(DkmClrModuleInstance debuggerModule)
 {
     IntPtr metadataBlock;
     uint blockSize;
     try
     {
         metadataBlock = debuggerModule.GetMetaDataBytesPtr(out blockSize);
         return Session.Importer.ImportModule(metadataBlock, blockSize);
     }
     catch (DkmException)
     {
         // This can fail when dump debugging if the full heap is not available
         return null;
     }
 }