B
Bruce Felknor
I have read other threads in this group about the MAPILogonComplete event and a caution about forcing MAPI logon from an Outlook addin by accessing a MAPI namespace property, such as currentuser. Dmitry Streblechenko cautions that it is best to wait as long as possible to do anything in an addin that requires MAPI logon.
Working in VB(6) on an Outlook 2003 addin, I've noticed that an addin will sometimes not receive the MAPILogonComplete event at all.
The addin code sets a variable (declared WithEvents) to the Outlook.Application in IDTExtensibility_StartupComplete event and waits for the MAPILogonComplete event to fire.
In environments experiencing occasional latency problems (networking, PC performance...I'm not at all sure of all the possible causes of the latency) that the MAPILogonComplete event does not fire every time during startup.
I'm wondering if some kind of latency could be the problem (and the addin startup complete occurs *after* MAPILogonComplete would have fired) or...
In any case, if an addin cannot rely on that event firing, at some point it would have to force the MAPI Logon. In light of the caution noted at the top of this topic, I'd like to know more about *how* and *when* to logon. How long should it wait ? What is the best method to use to know if enough time has passed ?
In Outlook 2003 when running in Cached Mode Exchange, there is refresh interval for synchronization (75 seconds by default) -- is this part of the reason for waiting to logon ?
Additionally, in many larger environments, Outlook may have (many) other addins (some of which are implemented as InfoStores and provide their own MAPI Trees, etc...) all of which are competing for resources, especially during startup.... In such environments, it is critical to implement resilient (and friendly !) addins.....
I'd like to better understand the nuances of Outlook startup, MAPI Logon and event notification and discuss fool-proof methods for successfully completing MAPI Logon in a manner that does not adversely affect Outlook and other Outlook addins.
Thanks !
Bruce
bfelknor at gmail dot com
Working in VB(6) on an Outlook 2003 addin, I've noticed that an addin will sometimes not receive the MAPILogonComplete event at all.
The addin code sets a variable (declared WithEvents) to the Outlook.Application in IDTExtensibility_StartupComplete event and waits for the MAPILogonComplete event to fire.
In environments experiencing occasional latency problems (networking, PC performance...I'm not at all sure of all the possible causes of the latency) that the MAPILogonComplete event does not fire every time during startup.
I'm wondering if some kind of latency could be the problem (and the addin startup complete occurs *after* MAPILogonComplete would have fired) or...
In any case, if an addin cannot rely on that event firing, at some point it would have to force the MAPI Logon. In light of the caution noted at the top of this topic, I'd like to know more about *how* and *when* to logon. How long should it wait ? What is the best method to use to know if enough time has passed ?
In Outlook 2003 when running in Cached Mode Exchange, there is refresh interval for synchronization (75 seconds by default) -- is this part of the reason for waiting to logon ?
Additionally, in many larger environments, Outlook may have (many) other addins (some of which are implemented as InfoStores and provide their own MAPI Trees, etc...) all of which are competing for resources, especially during startup.... In such environments, it is critical to implement resilient (and friendly !) addins.....
I'd like to better understand the nuances of Outlook startup, MAPI Logon and event notification and discuss fool-proof methods for successfully completing MAPI Logon in a manner that does not adversely affect Outlook and other Outlook addins.
Thanks !
Bruce
bfelknor at gmail dot com