
Add-in causes Outlook crash when Outlook launches as a result of email hyperlink
Just off the top of my head, your addin might need to check whether there is an active Explorer window before it starts adding buttons. In fact, if there is no active Explorer, it should unload itself automatically as the Items Command Bar sample from http://www.microeye.com demonstrates.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
Quote:
> Please let me know if there's a better group to post this to.
> I've created an Outlook add-in in C++ that simply adds a button to the
> Standard toolbar. When clicked, the add-in loads a web page in
> Outlook by automating the Address combobox. The button is created as
> "temporary", so the add-in creates it each time Outlook loads.
> Everything works fine until Outlook is "automatically" launched as a
> result of clicking an email hyperlink in a web page when Outlook is
> not already running. In this case, a new Outlook compose window is
> opened, followed immediately by the Error Report (crash) dialog.
> Outlook also reports that "a serious error occurred" the last time my
> add-in was loaded.
> Can someone tell me why my add-in loads fine if I launch Outlook
> directly, but causes a crash if Outlook is launched indirectly?
> TIA
> Jared