![]() |
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
|
|||
|
|||
![]()
Hi,
I have got an error when I try to unload my addin from Outlook 2003. The error: UnInitHandler Exception: {0} Exception HRESULT: 0x800A01A8 I get this message when the addin execute the line of code that remove one of my CommandBarButtons If Not (cbbEnvioSMS Is Nothing) Then cbbEnvioSMS.Delete() End If I am programing in VS.NET 2003. Anyone knows why occurs this error. Thanks, Jaume |
#2
|
|||
|
|||
![]()
From the sounds of it you are attempting delete the button in the
UninitHandler AFTER the Explorer_Event_Close has already fired. The explorer close event is where you want to get rid of all of your buttons, etc. Otherwise you will get the exception that you are seeing now, this is because the COM-Addin has already "collected" the garbage leaving your managed object dangling. When you attempt to delete using the function Delete(), the object doesn't exist in memory any more and promptly throws an exception. This in turn leaves some bad references in memory that causes Outlook to remain in memory because it thinks that there is still something out there that requires it to be resident in memory. Regards, Thaddaeus. "David Cebrian" wrote in message ... Hi, I have got an error when I try to unload my addin from Outlook 2003. The error: UnInitHandler Exception: {0} Exception HRESULT: 0x800A01A8 I get this message when the addin execute the line of code that remove one of my CommandBarButtons If Not (cbbEnvioSMS Is Nothing) Then cbbEnvioSMS.Delete() End If I am programing in VS.NET 2003. Anyone knows why occurs this error. Thanks, Jaume |
#3
|
|||
|
|||
![]()
If the button is created using the Temporary := True argument usually no
deleting is actually necessary for Explorer buttons. That's usually only needed if an Inspector button is created for WordMail. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Thaddaeus Parker" wrote in message ... From the sounds of it you are attempting delete the button in the UninitHandler AFTER the Explorer_Event_Close has already fired. The explorer close event is where you want to get rid of all of your buttons, etc. Otherwise you will get the exception that you are seeing now, this is because the COM-Addin has already "collected" the garbage leaving your managed object dangling. When you attempt to delete using the function Delete(), the object doesn't exist in memory any more and promptly throws an exception. This in turn leaves some bad references in memory that causes Outlook to remain in memory because it thinks that there is still something out there that requires it to be resident in memory. Regards, Thaddaeus. |
#4
|
|||
|
|||
![]()
Thanks for all,
it's so useful. "David Cebrian" escribió en el mensaje ... Hi, I have got an error when I try to unload my addin from Outlook 2003. The error: UnInitHandler Exception: {0} Exception HRESULT: 0x800A01A8 I get this message when the addin execute the line of code that remove one of my CommandBarButtons If Not (cbbEnvioSMS Is Nothing) Then cbbEnvioSMS.Delete() End If I am programing in VS.NET 2003. Anyone knows why occurs this error. Thanks, Jaume |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hummingbird Addin | Danny | Add-ins for Outlook | 0 | February 4th 06 08:00 PM |
Outlook Remains in TaskList after closing (with AddIn) | Jeff Simcock | Add-ins for Outlook | 2 | February 2nd 06 04:42 AM |
Outlook addin help | Melbin | Outlook - Using Forms | 0 | January 24th 06 01:12 PM |
VoiceMail PlugIn / AddIn | rawCoder | Outlook - General Queries | 0 | January 16th 06 01:50 PM |
VoiceMail PlugIn / AddIn | rawCoder | Add-ins for Outlook | 0 | January 16th 06 01:50 PM |