As always thank you Ken.
I am wondering I tried adding:
try
{
while
(System.Runtime.InteropServices.Marshal.ReleaseCom Object(contactItem) 0);
contactItem = null;
}
catch(System.Exception ex)
{
GlobalConstants.Log(log, "Error", "ReleasingComObjects", ex);
}
but sometimes it seems that while I am trying to do my processing I lose
reference to my object even though it was created after this.
Any ideas?
Thanks,
Rog
Ken Slovak - [MVP - Outlook] wrote:
Look at the information at
http://www.microeye.com/resources/res_outlookvsnet.htm