I am doing changes on an Outlook.MailItem but after closing the last explorer a message box asks to save the item (twice!).
I want to cancel the "dirty" state of the item without saving it so 开发者_C百科no message box will be displayed.
Is it possible to accomplish it? The only solution that I have is persisting the previous state and saving it again.
You need to release COM objects, created in your code. See When to release COM objects in Office add-ins developed in .NET.
精彩评论