![]() |
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 created a COM Add Ins to add a button to Outlook toolbar. This button
shows a form with a combobox when clicked. It keeps a reference to the form in memory in the release even when I close the form. My question is how can I release the object from the memory? Right now, I will close the form twice when I open the email twice. Thanks. Jimmy |
Ads |
#2
|
|||
|
|||
![]()
You really need to provide more information when you post with a problem.
You should provide the Outlook version, the platform and language you used and show a short snippet of your code. Is this a WinForms form? In the form code are you releasing any objects you created in the form in the dispose code? Are you releasing any handles to the form and the UI you created and the item itself by setting them to null or Nothing? For COM objects you might have to call Marshal.ReleaseComObject on each COM object, although you have to be careful of that if the underlying COM object must still retain its references. -- 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 "Jimmy" wrote in message ... I created a COM Add Ins to add a button to Outlook toolbar. This button shows a form with a combobox when clicked. It keeps a reference to the form in memory in the release even when I close the form. My question is how can I release the object from the memory? Right now, I will close the form twice when I open the email twice. Thanks. Jimmy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CPAO: object reference not set to an instance of an object | Caroline | Outlook - Calandaring | 2 | November 29th 08 04:32 AM |
Problem with Object Reference for MailItem | alexcraig | Outlook and VBA | 3 | January 6th 08 10:08 PM |
Why does the Address property of the Recipient object in the Outlook object model look funny? | Omatase | Outlook - General Queries | 2 | July 13th 07 09:09 PM |
Object reference not set to an instance of an object | [email protected] | Outlook - General Queries | 0 | May 17th 07 07:40 AM |
what will OE users do when IE 7 is released? | David DeRolph | Outlook Express | 4 | February 15th 06 09:01 PM |