none
Oulook 2013 Add-in disabled - add-in caused Outlook to start slowly RRS feed

  • Question

  • I have a VSTO Outlook 2013 project that is running into the Outlook 2013 policy issue whereby the add-in is disabled due to it taking longer than 1 second to load.  In the add-in Startup event there's a call to a function that reads an XML file and populates various List objects (appears to take a few seconds).  Is there an event I can move this call to that would occur after the Startup event has completed?     
    Sunday, May 26, 2013 11:35 PM

Answers

  • you can start your own timer in startup event (but one that uses win api message pump so it will be called on main UI thread, for example one from System.Windows.Forms namespace) and do your logic in timer callback.
    • Marked as answer by J Wagner Tuesday, May 28, 2013 3:03 AM
    Monday, May 27, 2013 7:24 AM

All replies

  • you can start your own timer in startup event (but one that uses win api message pump so it will be called on main UI thread, for example one from System.Windows.Forms namespace) and do your logic in timer callback.
    • Marked as answer by J Wagner Tuesday, May 28, 2013 3:03 AM
    Monday, May 27, 2013 7:24 AM
  • One possible event might be MAPILogonComplete(), that will fire after any startup events. It can be subscribed to during the startup handler. Otherwise use Damian's advise about a timer, but ensure that it runs in the same thread as the addin does or you'll get disabled for threading violations.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "DamianD" <=?utf-8?B?RGFtaWFuRA==?=> wrote in message news:b76e7f14-4de4-46fd-8706-ce2422107695...
    you can start your own timer in startup event (but one that uses win api message pump so it will be called on main UI thread, for example one from System.Windows.Forms namespace) and do your logic in timer callback.

    Ken Slovak MVP - Outlook
    Tuesday, May 28, 2013 1:36 PM