E
Eyal
Hi All,
I'm developing Outlook 2003 VSTO 2005 add-in, which intercepts each outgoing
mail using ItemSend event, and changes the subject according to the content
and messageboxes.
The add-in works fine a few times, and then stops responding (the ItemSend
event is not triggered).
I added these following lines in the finally block in the end of the
ItemSend event, and it helped a bit, but not completely:
finally
{
Outlook.Application olApp = new
Microsoft.Office.Interop.Outlook.Application();
olApp.ItemSend -= new
Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemSendEventHandler(olApp_ItemSend);
olApp.ItemSend += new
Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemSendEventHandler(olApp_ItemSend);
}
Help will be appreciated,
Eyal
I'm developing Outlook 2003 VSTO 2005 add-in, which intercepts each outgoing
mail using ItemSend event, and changes the subject according to the content
and messageboxes.
The add-in works fine a few times, and then stops responding (the ItemSend
event is not triggered).
I added these following lines in the finally block in the end of the
ItemSend event, and it helped a bit, but not completely:
finally
{
Outlook.Application olApp = new
Microsoft.Office.Interop.Outlook.Application();
olApp.ItemSend -= new
Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemSendEventHandler(olApp_ItemSend);
olApp.ItemSend += new
Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemSendEventHandler(olApp_ItemSend);
}
Help will be appreciated,
Eyal