R
Rick Shuri
I have a VSTO 2005 Outlook 2007 add-in up and running. It uses an Outlook
adjoining form region. This very simple code throws an
AccessViolationException on the "Hello World" line:
private void frEmailAppt_FormRegionShowing(object sender,
System.EventArgs e)
{
if (this.OutlookItem is Outlook.MailItem)
{
_olMailItem = (Outlook.MailItem)this.OutlookItem;
_olMailItem.Body = "Hello World";
}
}
Any ideas? Strangely, it doesn't happen every time!?!
adjoining form region. This very simple code throws an
AccessViolationException on the "Hello World" line:
private void frEmailAppt_FormRegionShowing(object sender,
System.EventArgs e)
{
if (this.OutlookItem is Outlook.MailItem)
{
_olMailItem = (Outlook.MailItem)this.OutlookItem;
_olMailItem.Body = "Hello World";
}
}
Any ideas? Strangely, it doesn't happen every time!?!