释放 WMPLib 2010-2-11 zzy .Net (0) MSDN释放 WMPLib 的资源 //定义 WindowsMediaPlayerClass wmp = new WindowsMediaPlayerClass(); //释放 public void DisposeWMPLib() { if (wmp != null) { System.Runtime.InteropServices.Marshal.FinalReleaseComObject(wmp); wmp = null; System.GC.Collect(); } }