ComReleaser.ReleaseCOMObject(dsName); ComReleaser.ReleaseCOMObject(wks); GC.Collect(); GC.WaitForPendingFinalizers();