Thread: Deleted Items
View Single Post
  #7  
Old March 9th 06, 05:20 PM posted to microsoft.public.outlook.program_addins
Rog
external usenet poster
 
Posts: 62
Default Deleted Items

OK so for example if I get a list of contacts like
GetNamespace("MAPI").GetDefaultFolder(OlDefaultFol ders.olFolderContacts).Items;
and I use it, do I need to release it when I am done with these items?
Also if I say:
object item = GetFolderFromId(entry, store);
do I need to release this item and garbage collect everytime when I am
done with it?
rog

Ken Slovak - [MVP - Outlook] wrote:
No, not really. It's a matter of looking over each line of your code
with a microscope and checking for creation of implicit variables (from
using compound dot operators instead of explicitly declared variables
for each dot operator), making sure everything is explicitly released
instead of relying on things to go out of scope and other best practices.

Ads