If you are developing add-ins or customizations for Outlook, these changes in 2010 are worth noting. I'm pulling an article out of the MSDN Office Development Library to alert you to an important change to the way Outlook shuts down. The article contains several alternative strategies for successfully managing Outlook shutdown with your add-ins. There are also Reg keys for IT to force the 2007 shutdown behavior.
The changes were made to address end user feedback related to Outlook performance, and should result in implementation changes for Outlook developers that improve the situation. Good add-in developers seek to minimize perf impact as much as possible, and this change in Outlook is a good "suggestion" for how to better manage the closing of data files & global updates from Outlook on exit.
"Starting in the Outlook 2010 Beta release, Outlook, by default, does not signal add-ins that it is shutting down. Specifically, Outlook no longer calls the OnBeginShutdown and OnDisconnection methods of the IDTExtensibility2 interface during fast shutdown. Similarly, an Outlook add-in written with Microsoft Visual Studio Tools for Office no longer calls the ThisAddin_Shutdown method when Outlook is shutting down.
The impact of the changes on an add-in depends on what the add-in does during these events. Most add-ins use these events to release references to Outlook COM objects and clear memory that was allocated during the session. In these cases, the impact on the add-ins is minimal; Outlook releases the remaining COM object references and shuts down, and Windows reclaims the memory when the Outlook process exits.
For some add-ins, the changes have more impact. If an add-in uses these events to commit data (for example, to store user settings or to report usage to a Web server), those activities will no longer take place. Depending on the scenario, this may or may not have a visible impact to users. To remedy the situation, the add-in developer can modify the add-in to be compatible with the changes, or an IT administrator can use group policy to restore the original behavior for a specific add-in."
Managing Compatibility for Outlook Add-ins with Shutdown procedures
Add-ins should be reviewed per the guidelines in the article to determine whether the shut-down procedures are truly necessary. If they are, however, and IT wants to improve cross-version compatibility, the article details the registry keys available for forcing Outlook to use the 2007 shutdown methods.
Individual Add-in Setting (recommended)
With this setting, Outlook selectively provides shutdown notifications to the specified add-in without notifying all add-ins. Configure this setting for each add-in through the add-in registration in the HKCU or the HKLM registry hives, by adding an additional value to the add-in registration. Type the following text as a single line.
Setting this value to
0x1enables the add-in to receive blocked callbacks during Outlook shutdown. This has an impact on the performance of Outlook shutdown and should be evaluated as part of a deployment. This setting should be used only if an add-in has significant compatibility issues with the new shutdown mechanism. Setting the value to
0x0uses the default behavior of Outlook 2010.
Use this setting to change the new shutdown mechanism to match that used by Outlook 2007. You can deploy the setting through group policy, either per user or per computer. Type the following text as a single line.
AddinFastShutdownBehaviorto 0x1 enables shutdown notifications for all add-ins. Setting the value to 0x0 uses the default behavior of Outlook 2010.
These two settings provide administrators complete control over the effect that this new behavior has on custom solutions and add-ins that are used in the enterprise. During the evaluation period of Outlook 2010 Beta, it is important that organizations test any custom solutions using Outlook add-ins to ensure compatibility with this change.