![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have created programmatically a structure of root MAPIFolder, with
subfolders and MailItems. Is it necessary to explicitly release all items (subfolders and mail items) or I can release only the root MAPIFolder? -- Nenad Dobrilovic |
Ads |
#2
|
|||
|
|||
![]()
Best practice is to always release everything.
Since you provide no information about your development language or platform or even the Outlook versions you're targeting it's impossible to say more. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Nenad Dobrilovic" wrote in message ... I have created programmatically a structure of root MAPIFolder, with subfolders and MailItems. Is it necessary to explicitly release all items (subfolders and mail items) or I can release only the root MAPIFolder? -- Nenad Dobrilovic |
#3
|
|||
|
|||
![]()
Thank you.
I am using C# and VSTO to make an add-in for Outlook 2003. -- Nenad Dobrilovic "Ken Slovak - [MVP - Outlook]" wrote: Best practice is to always release everything. Since you provide no information about your development language or platform or even the Outlook versions you're targeting it's impossible to say more. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Nenad Dobrilovic" wrote in message ... I have created programmatically a structure of root MAPIFolder, with subfolders and MailItems. Is it necessary to explicitly release all items (subfolders and mail items) or I can release only the root MAPIFolder? -- Nenad Dobrilovic |
#4
|
|||
|
|||
![]()
In that case in addition to setting all COM objects to null in the
procedures where you declare them you should also use Marshal.ReleaseComObject() on them if you no longer need the objects or any other related objects. For example, if you have a locally declared Inspector object don't use Marshal.ReleaseComObject() on it if you still need other instances of that object anywhere in your code. Otherwise you get an RCW error when you try to refer to the Inspector in other parts of your code. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Nenad Dobrilovic" wrote in message ... Thank you. I am using C# and VSTO to make an add-in for Outlook 2003. -- Nenad Dobrilovic |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Release COM components | Nenad Dobrilovic | Add-ins for Outlook | 3 | October 3rd 08 06:47 PM |
my outlook 2007 cannot startup, but other components work well. | Chris | Outlook - Installation | 1 | May 19th 08 02:44 PM |
Identifying components of email message | ed | Outlook and VBA | 4 | May 15th 07 05:41 PM |
Launching Office 2007 components gets Office 2003 set up | P Cause | Outlook - Installation | 0 | July 1st 06 12:46 PM |
PST files and other components | Mark | Outlook - Installation | 4 | April 1st 06 04:54 AM |