Outlook Addin - Problem whith computer shutdown

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

Outlook Addin - Problem whith computer shutdown
 
Karl Schmidt




Posts: 1
Joined: 2010-07-26
Hi,

I have some problems using Addin Express for Outlook (using adxvcl-v600-b0753-std).

When the addin is starting up these events are always triggered fine:

- AddInModuleCreate
- AddInInitialize
- AddInStartupComplete


When Outlook is terminated by user e.g. by closing with [X] button these events are always triggered fine:

- AddInBeginShutdown
- AddInFinalize
- AddInModuleDestroy

When Windows session is terminated (WM_QUERYENDSESSION; WM_ENDSESSION) with running Outlook the events

- AddInBeginShutdown
- AddInFinalize
- AddInModuleDestroy

are NEVER triggered. So Outlook hangs because I have to do some deinitializations.


Has anybody any suggestion?


Thanks

Karl
Posted 26 Jul, 2010 04:44:01 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hi Karl,

In the OnExplorerClose and OnInspectorClose events of the add-in module, try checking if Inspectors.Count and Explorers.Count return zero; if this is the case, you can do the deinitializations you mentioned.


Andrei Smolin
Add-in Express Team Leader
Posted 27 Jul, 2010 12:19:46 Top
MW23


Guest


Hi Andrei,

I have the same problem: If the user shuts down windows, Outlook is NOT CLOSED because of my addin! any ideas how to investigate this issue?

Martin
Posted 10 Aug, 2010 06:21:38 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Martin,

You can comment out blocks of code. The most typical cause of such issue is a non-released COM object; read more on this at http://www.add-in-express.com/creating-addins-blog/2008/10/30/releasing-office-objects-net/.


Andrei Smolin
Add-in Express Team Leader
Posted 10 Aug, 2010 08:47:29 Top