当前位置: 首页 > 工具软件 > release-it > 使用案例 >

Release COM Object

阴高寒
2023-12-01

if (msiDb != null)
{
     System.Runtime.InteropServices.Marshal.FinalReleaseComObject(msiDb);
     msiDb =null;
}

if (pcpDb != null)
{
     System.Runtime.InteropServices.Marshal.FinalReleaseComObject(pcpDb);
     pcpDb =null;
}

GC.Collect();

 类似资料:

相关阅读

相关文章

相关问答