Created
July 3, 2017 15:30
-
-
Save davecra/b18dbe1fa7e2d3adb5729971b8e5b570 to your computer and use it in GitHub Desktop.
Typical COM Release Object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Marshal.ReleaseComObject(excelWorkbook); | |
Marshal.ReleaseComObject(excelApp); | |
excelApp = null; | |
excelWorkbook = null; | |
GC.Collect(); | |
GC.Collect(); | |
GC.WaitForPendingFinalizers(); | |
GC.WaitForFullGCComplete(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment