File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
ExcelDna.IntelliSense.Host
ExcelDna.IntelliSense/UIMonitor Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 6060 </Content >
6161 </ItemGroup >
6262 <ItemGroup >
63- <None Include =" ExcelDna.IntelliSense.Host-AddIn.xll.config" >
64- <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
65- </None >
6663 <None Include =" packages.config" />
6764 </ItemGroup >
6865 <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Original file line number Diff line number Diff line change 44using System . Linq ;
55using System . Threading ;
66using System . Windows ;
7+ using System . Windows . Automation ;
78
89namespace ExcelDna . IntelliSense
910{
@@ -645,6 +646,9 @@ public void Dispose()
645646 _popupListWatcher . Dispose ( ) ;
646647 _popupListWatcher = null ;
647648 }
649+ // Try to clean up any stray event handlers too...
650+ Automation . RemoveAllEventHandlers ( ) ;
651+
648652 } , null ) ;
649653
650654 // Let the above delegate and nested calls run, then clean up.
You can’t perform that action at this time.
0 commit comments