OUTLOOK VERSION: 2212 Build 15928.20282
32 Bit Outlook running on 64-Bit Win.
PRE-CONDITION:
Have a simple add-in which Overrides the InspectorActivate event handler.
RECREATE:
Open a new message Item
type in a few words and make a spelling error
Select the misspelled item, and LEFT click on one of the words suggested in the dropdown list.
When the event handler attempts to access the Body property of the Outlook MailItem a System.AccessViolation is thrown, and my exception handler is never reached.
mailItem = Inspector.CurrentItem as Outlook._MailItem;
if (mailItem != null)
{
try
{
if (mailItem.Body == null) // System.AccessViolationException
{
return false;
}
else
{
return true;
}
}
catch(Exception e)
{
log.Error(e);
}
}