Error from Outlook addin with Word as Editor in Outlook 2000 or XP

Add-in Express™ Support Service
That's what is more important than anything else

Error from Outlook addin with Word as Editor in Outlook 2000 or XP
 
Ryan Farley




Posts: 109
Joined: 2005-04-28
I have created an Outlook Addin using ADX 2.2 for Outlook 2000 & XP. The Addin contains an Inspector command-bar. If Outlook has Word set as it's mail editor *and* the mail format is set to RTF then ADX throws an "object reference not set to an instance of an object" error whenever you create a new e-mail or reply to an existing one. If the mail format is Text or HTML then all works fine (even with Word as the editor). However the combination of Word as the editor and mail format of RTF will always throw the error on any machine.

The addin I am using is a test one with no code in it other than just setting the necessary properties to complete a blank project with an inspector button that does nothing.

To duplicate the problem, using Outlook 2000 or Outlook XP:

1) Set the options to use Word as your editor and set the mail format to RTF.
2) Then install any ADX plugin that has an Inspector button.
3) Click the "New" button in Outlook to compose a new e-mail.
4) You should now see the error.

If you attempt to handle the error in the AddinModule OnError event then you won't see the error message, however your addin will be broken (the addin buttons will still show but will not do anything if clicked).

To be clear, the error does not happen when you click the command-bar buttons from your addin, but instead whenever a new inspecor window is created (for a new e-mail or replying to an existing one, etc). The same addin will work correctly if you change Outlook's options to either not use Word as the editor or you can leave Word as the editor and change the mail format to HTML or Text (as long as it is not RTF).

Thanks in advance for any help.

-Ryan
Posted 16 May, 2005 19:21:32 Top
Ryan Farley




Posts: 109
Joined: 2005-04-28
A little more info.

If I check the stack trace from the ADXError in the OnError event of the AddinModule, the NullReferenceException seems to be thrown from the following:

AddinExpress.MSO.OlInspectorsEvents_SinkHelper.DoNewInspector(Object sender, Object inspector)

Thanks.
-Ryan
Posted 16 May, 2005 19:52:01 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Ryan.

We have already fixed this issue in a new ADX build. I can send you the update by mail if you wish.
Posted 17 May, 2005 02:37:09 Top
Ryan Farley




Posts: 109
Joined: 2005-04-28
That would be great - ryan at farleyzone-com

Thanks!
-Ryan
Posted 17 May, 2005 11:12:00 Top
Ryan Farley




Posts: 109
Joined: 2005-04-28
All is working great with the new build. Thanks a lot.

-Ryan
Posted 22 May, 2005 23:55:10 Top