locked
EMET 5.5 freezes Outlook with custom add-in RRS feed

  • Question

  • I have an in-house VSTO C# add-in that was developed for Outlook.  The add-in started freezing Outlook 2013 on startup (it would hang at the splash screen) and debugging showed that the code hung on creation of a new System.Diagnostics.PerformanceCounter.  When creating a new Performance Counter from a .NET console app, it worked fine; it was only when doing so from an Outlook add-in

    Further CLR source and native debugging showed that it was hung on what appeared to be a call from/to EMET.dll.  So I uninstalled EMET 5.5 and everything started working. 

    To recreate this issue, in Visual Studio, create a new Outlook 2013 project with just the following code:

    private void ThisAddIn_Startup(object sender, System.EventArgs e)
            {                    System.Diagnostics.PerformanceCounter pc = new System.Diagnostics.PerformanceCounter("Processor", "% Processor Time", "_Total");
            }
    
    
            private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
            {
            }

    My machine info:

    EMET 5.5

    Windows 10

    Outlook 2013

    Visual Studio 2013

    Wednesday, March 8, 2017 10:14 PM