Exchange 250 open objMessage limit
I have read about this problem all over the forums, but have not come
across any answers yet.
I am creating MailItem objects within a VSTO C# Outlook add-in,
specifically in the SelectionChange event. This is to allow some
interigation of the selected mailItem. The problem I am facing is that
every time the event fires and a MailItem object is created, the "Open
Messages" count for that user increases by 1 on exchange. Fair enough,
but I cannot get the count to decrease when I move to the next
mailitem. I have tried:
Marshal.ReleaseComObject(myMail)
myMail.Close("with appropriate switch")
myMail = null
None of these seem to destroy the object and decrease the count. If I
cannot solve this problem, my whole project dissappears down the
plughole and I will be forced to buy "Off the shelf" Arrrghh.
Please help me, and thanks in advance.
Bev.
|