Delay in Shutting down AddIn applications

Mar 19, 2008 at 10:08 PM
The sample applications (WPF Calculator and Extensible Calculator) has a huge delay - upto 15sec during Visual Studio debug session and upto 5sec during normal execution (easily visible in the Extensible Calculator command line application). The application is waiting on a GCFinalizer thread that is calling ContractBase.RevokeLifeTimeToken call. Any ideas why this call is taking a long time and how we can reduce the time. Thanks.
Mar 21, 2008 at 4:55 PM
Found the Answer. Calling Shutdown on AddInController on Application Close unloads the AddIn and hence shutsdown the application without the delay. AddInController.GetAddInController(hostView) gets the AddInController.

parame wrote:
The sample applications (WPF Calculator and Extensible Calculator) has a huge delay - upto 15sec during Visual Studio debug session and upto 5sec during normal execution (easily visible in the Extensible Calculator command line application). The application is waiting on a GCFinalizer thread that is calling ContractBase.RevokeLifeTimeToken call. Any ideas why this call is taking a long time and how we can reduce the time. Thanks.