J
j
Hi,
While i delete MailItem ( myMailItem.Delete() ) should i also call
ReleaseComObject,
and is it good idea to call Application.DoEvents after deleting item??
please review the code snippets:
................
...........
.............
mailItem.Delete();
Application.DoEvents();
Marshal.ReleaseComObject(mailItem);
mailItem = null;
......................
..............................
is it right way ???
TNX in advance;
While i delete MailItem ( myMailItem.Delete() ) should i also call
ReleaseComObject,
and is it good idea to call Application.DoEvents after deleting item??
please review the code snippets:
................
...........
.............
mailItem.Delete();
Application.DoEvents();
Marshal.ReleaseComObject(mailItem);
mailItem = null;
......................
..............................
is it right way ???
TNX in advance;