C
Cedric
Hello,
We have many problems because Outlook doesn't shutdown properly.
We are using Outlook 2007 with BCM + Exchange 2007.
With the following addin (written in C# with Visual Studio 2008) , Outlook
2007 shut downs properly as expected.
As soon as the BCM addin is also activated, Outlook 2007 doesn't shutdown
any more.
Could you please fix this bug? Is there a workaround?
Thanks,
Cedric
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;
namespace OutlookAddInDoesNotShutdown
{
public partial class ThisAddIn
{
private Outlook.NameSpace nameSpace = null;
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
nameSpace = this.Application.GetNamespace("MAPI");
}
private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
{
nameSpace = null;
GC.Collect();
}
#region VSTO generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InternalStartup()
{
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}
#endregion
}
}
We have many problems because Outlook doesn't shutdown properly.
We are using Outlook 2007 with BCM + Exchange 2007.
With the following addin (written in C# with Visual Studio 2008) , Outlook
2007 shut downs properly as expected.
As soon as the BCM addin is also activated, Outlook 2007 doesn't shutdown
any more.
Could you please fix this bug? Is there a workaround?
Thanks,
Cedric
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;
namespace OutlookAddInDoesNotShutdown
{
public partial class ThisAddIn
{
private Outlook.NameSpace nameSpace = null;
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
nameSpace = this.Application.GetNamespace("MAPI");
}
private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
{
nameSpace = null;
GC.Collect();
}
#region VSTO generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InternalStartup()
{
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}
#endregion
}
}