slow shutdown in outlook

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

slow shutdown in outlook
 
Ivan Petrovic




Posts: 11
Joined: 2011-11-15
We have Outlook plugin and sometimes on Outlook 2010, we get report from user that

"Outlook experienced a serious problem with the 'paop' add-in. Do you want to disable this add-in. Yes/No"

Sometimes it disables automatically.

Actually the reason is not any crash, just slow shutdown of our plugin. We have a outlook plugin with some toolbars, ribbon toolbars for main interface and new message window. We do not use any of BeginShutdown or Quit events because we do not have to save anything, nor free any memory nor close any database connection. So implementing any of those events for fashshutdown is not needed.

Is there any way we can give some feedback to Outlook during shutdown that maybe it will take 0,5 seconds longer our shutdown thant other add-ins?
Posted 05 Sep, 2012 10:39:54 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Ivan,

Still it looks like an exception: this message usually occurs after a crash caused by your add-in. What made you think this is a slow shutdown?

Do you have this entry in the registry:

Key: {HKCU or HKLM}\Software\Microsoft\Office\Outlook\Add-ins\<YourAddinProgID>
Value: RequireShutdownNotification

Is RequireShutdownNotification set to 1?

What Outlook build and bitness is used on the affected PC? What Add-in Express build number do you use?

Ivan Petrovic writes:
Is there any way we can give some feedback to Outlook during shutdown that maybe it will take 0,5 seconds longer our shutdown thant other add-ins?


No such way exists.


Andrei Smolin
Add-in Express Team Leader
Posted 06 Sep, 2012 02:12:46 Top
Ivan Petrovic




Posts: 11
Joined: 2011-11-15
Andrei,

Ok. We reporduced with Outlook 2010 x64 14.0.6123.5001, also with Outlook 2010 x86 (one user). We use AddInExpress 7.0.1210 for Delphi XE2 and we are creating x86 and x64 DLLs.

We cannot find this value RequireShutdownNotification at all for our add-in. We can find it for some other add-ins in that key, but for us no. Is this required and how can be inserted?

Ivan
Posted 06 Sep, 2012 07:46:12 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Ivan,

The message "Outlook experienced a serious problem with ..." means that there was an exception.

Outlook 2010 doesn't check the shutdown time. You can show a message box in such an event and wait for minutes; when you close the message box, Outlook 2010 will close and unload your add-in normally.

Do you use threads or asynchronous operations? Are other add-ins turned off? Does Outlook hangs in the Processes list of the task manager window after you close its UI? Is Outlook started manually (e.g. from the Start Menu) or in some other way?

What update pack do you have for your XE2?

Ivan Petrovic writes:
Is this required and how can be inserted?


I don't think you require it. If it is set to 1, then your add-in will not receive AddinBeginShutdown and AddinFinalize when you close Outlook. These events will still occur however if you turn your add-in off using the COM Add-ins dialog.


Andrei Smolin
Add-in Express Team Leader
Posted 06 Sep, 2012 10:23:16 Top