When do I need to call ReleaseComObject?
问题 In a Microsoft Office AddIn we are passed COM objects in events. To take a specific case, when Word opens a document we are called and passed a Document object. So when do we need to call Marshal.ReleaseComObject()? If we access the Document object do we need to call release on it? Or can we assume Word has already accessed it and will clean it up? If we access Document.Name that gives us a string. As a string is not a COM object we do not need to clean that up - correct? But if we access any