WinWord.exe won't quit after calling Word.Documents.Add - Word .NET Interop

后端 未结 13 1809
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 06:27

I\'m running into the classic scenario where, when creating Word COM objects in .NET (via the Microsoft.Office.Interop.Word assembly), the WinWord process won\'t exit even t

13条回答
  •  旧巷少年郎
    2020-11-30 07:27

    I've only done Excel automation, but have run into similar problems. Referencing some old code, the final step in closing has the line GC.Collect()

    This article mentions it too: http://support.microsoft.com/kb/317109

提交回复
热议问题