PC Review


Reply
Thread Tools Rate Thread

Add-in stops getting notifications

 
 
David Schwartz
Guest
Posts: n/a
 
      17th Dec 2003
I wrote a C# COM add-in based on the sample from MSDN.
In OnConnection() I sign up for the
applicationObject.Inspectors.NewInspector event using the
following code:
applicationObject.Inspectors.NewInspector +=
new Outlook.InspectorsEvents_NewInspectorEventHandler
(NewInspectorMethod);

At some point I stop getting this notification.
To be more specific, when I open a new meeting request, I
add some buttons to the command bar, and when I open one
of my forms, by pressing these buttons, I stop getting
the NewInspector event.
I've checked that I don't have any unhandled exceptions
in my code, so I don't think that my code caused the add-
in to unload.

Is this a known issue? if so, is there anything I can do
to solve it?
 
Reply With Quote
 
 
 
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      17th Dec 2003
Try to store applicationObject.Inspectors as a class variable and set up the
events as:

m_inspectors = applicationObject.Inspectors;
m_inspectors .NewInspector += new
Outlook.InspectorsEvents_NewInspectorEventHandler(NewInspectorMethod);

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"David Schwartz" <(E-Mail Removed)> wrote in message
news:072101c3c470$95efae40$(E-Mail Removed)...
> I wrote a C# COM add-in based on the sample from MSDN.
> In OnConnection() I sign up for the
> applicationObject.Inspectors.NewInspector event using the
> following code:
> applicationObject.Inspectors.NewInspector +=
> new Outlook.InspectorsEvents_NewInspectorEventHandler
> (NewInspectorMethod);
>
> At some point I stop getting this notification.
> To be more specific, when I open a new meeting request, I
> add some buttons to the command bar, and when I open one
> of my forms, by pressing these buttons, I stop getting
> the NewInspector event.
> I've checked that I don't have any unhandled exceptions
> in my code, so I don't think that my code caused the add-
> in to unload.
>
> Is this a known issue? if so, is there anything I can do
> to solve it?



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Media Player 11.0.5721.5268 stops responding (video stops or all s Franklin Windows XP Video 0 27th Jan 2010 04:54 AM
Printer stops printing - explorer.exe stops resaponding microsvc Microsoft Windows 2000 Printing 0 1st Jul 2009 08:14 PM
IE 7.0 stops responding, stops working,or restarts unexpectedly , =?Utf-8?B?RmVybmFuZG8=?= Windows XP Internet Explorer 1 13th Nov 2007 09:32 PM
music stops comp. stops and then reboots it self =?Utf-8?B?amF5bGVl?= Windows XP Basics 3 11th Feb 2006 06:10 PM
XP home install won't complete - process stops, reboots, stops again =?Utf-8?B?Q2hhcmxlcyBSIEk=?= Windows XP Setup 1 19th Mar 2004 03:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:43 AM.