/// <summary> /// Called when the <see cref="StandardAddInServer"/> is being unloaded /// </summary> public void Deactivate() { Marshal.ReleaseComObject(MainApplication); MainApplication = null; FilePanel.Parent.Delete(); ExporterEnv.Delete(); GC.WaitForPendingFinalizers(); GC.Collect(); }
protected override void DestroyEnvironment() { exporterEnv.Delete(); exporterEnv = null; }