我已經在我的課是COMObjectReleaseComObject是否等於取消訂閱事件處理程序?
protected COMObject.Call call_ = null;
這個類有下面的事件處理,我訂閱了
call_.Destructed += new COMObject.DestructedEventHandler(CallDestructedEvent);
使用
Marshal.ReleaseComObject(call_)
等於
定義的新成員call_.Destructed -= new COMObject.DestructedEventHandler(CallDestructedEvent);
它可能是。事件很奇怪,一個COM對象不能被破壞,除非所有的接口引用都計數到零。只要您訂閱了該活動,該計數就不會達到零。不應該。設計非常*可腥。 –