A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

unload COM addin problem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 8th 06, 06:10 PM posted to microsoft.public.outlook.program_addins
David Cebrian
external usenet poster
 
Posts: 15
Default unload COM addin problem

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  
Old February 8th 06, 06:37 PM posted to microsoft.public.outlook.program_addins
Thaddaeus Parker
external usenet poster
 
Posts: 17
Default unload COM addin problem

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  
Old February 8th 06, 08:05 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default unload COM addin problem

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  
Old February 9th 06, 11:26 AM posted to microsoft.public.outlook.program_addins
David Cebrian
external usenet poster
 
Posts: 15
Default unload COM addin problem

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.