Outlook VSTO AddIn for Meetings
Posted
by BigDubb
on Stack Overflow
See other posts from Stack Overflow
or by BigDubb
Published on 2008-12-04T23:02:55Z
Indexed on
2010/04/22
19:03 UTC
Read the original article
Hit count: 203
We have created a VSTO addin for Outlook Meetings.
As part of this we trap on the SendEvent of the message on the FormRegionShowing event:
_apptEvents.Send += new Microsoft.Office.Interop.Outlook.ItemEvents_SendEventHandler(_apptEvents_Send);
The method _apptEvents_Send then tests on a couple of properties and exits where appropriate.
private void _apptEvents_Send(ref bool Cancel)
{
if (!_Qualified)
{
MessageBox.Show("Meeting has not been qualified", "Not Qualified Meeting", MessageBoxButtons.OK, MessageBoxIcon.Information);
chkQualified.Focus();
Cancel = true;
}
}
The problem that we're having is that some users' messages get sent twice. Once when the meeting is sent and a second time when the user re-opens outlook.
I've looked for memory leaks, thinking that something might not be getting disposed of properly, and have added explicit object disposal on all finally calls to try and make sure resources are managed, but still getting the functionality incosistently across the organization. i.e. I never encountered the problem during development, nor other developers during testing. All users are up to date on framework (3.5 SP1) and Hotfixes for Outlook.
Does anyone have any ideas on what might be causing this?
Any ideas anyone might have would be greatly appreciated.
© Stack Overflow or respective owner