Formula list freezing on latest update of Excel 2016
See original GitHub issueIn the last few weeks, I have noticed that the Excel is now hanging for ~15secs if I have an addin loaded with intellisense added. In general, it occurs on the 2nd or 3rd character - in this example i was trying to type “NORM.DIST” and it hung when I typed “R”. I am on Excel 7571.2058-64bit
I ran the code through visual studio to see if I could work out what is going wrong… and I think its occuring at this point: “PopupListWatcher.cs”
listBounds = (Rect)_popupList.GetCurrentPropertyValue(AutomationElement.BoundingRectangleProperty); Debug.Print($"#### PopupList Update - ListBounds: {listBounds} / SelectedItemBounds:{selectedItemBounds}");
And the output log: @>@>@>@> LoadNotification: Loaded - C:\Program Files\Microsoft Office\root\Office16\MSOHEV.DLL STATE UPDATE (FormulaEditStart): Ready => FormulaEdit FormulaEditWindow: 658722 FormulaPrefix: = EditWindowBounds: 485,193,2075,66 ExcelToolTipWindow: 0 Created ToolTipForm with owner 658722 IntelliSenseDisplay - FormulaEditStart - FormulaEditWindow: 658722, ArgumentsToolTip: ExcelDna.IntelliSense.ToolTipForm, Text: ^^^ FormulaEditStateChanged. CurrentPrefix: =, Thread 1 Not processing formula =n POPUPLISTWATCHER WINDOW CURRENT SELECTION System.Windows.Automation.AutomationElement
PopupList Update - ListBounds: 504,262,159,206 / SelectedItemBounds: 505,263,140,17
STATE UPDATE (FormulaEditExcelToolTipChange): FormulaEdit FormulaEditWindow: 658722 FormulaPrefix: =n EditWindowBounds: 485,193,2075,66 ExcelToolTipWindow: 0 => FormulaEdit FormulaEditWindow: 658722 FormulaPrefix: =n EditWindowBounds: 485,193,2075,66 ExcelToolTipWindow: 21105186 STATE UPDATE (FunctionListShow): FormulaEdit FormulaEditWindow: 658722 FormulaPrefix: =n EditWindowBounds: 485,193,2075,66 ExcelToolTipWindow: 21105186 => FunctionList FunctionListWindow: 1444754 FunctionListBounds: 504,262,159,206 SelectedItemText: N SelectedItemBounds: 505,263,140,17 FormulaEditWindow: 658722 FormulaPrefix: =n EditWindowBounds: 485,193,2075,66 ExcelToolTipWindow: 21105186 IntelliSenseDisplay - FunctionListShow Created ToolTipForm with owner 1444754 Not processing formula =no POPUPLISTWATCHER WINDOW CURRENT SELECTION System.Windows.Automation.AutomationElement
Issue Analytics
- State:
- Created 7 years ago
- Comments:42 (19 by maintainers)
Top GitHub Comments
I’ve made another new release, hopefully giving a proper fix to the Excel 2016 issues. The new release is available on GitHub here: https://github.com/Excel-DNA/IntelliSense/releases/tag/v1.0.2 and (@junos) as an updated NuGet package (ExcelDna.IntelliSense version 1.0.2).
The internals have changed significantly, since I’ve removed the UI Automation dependency. Please let me know whether this fixes the Excel 2016 delays, and whether I’ve introduced any regressions.
@opus131 That first one looks similar to what I expect, and has the delay in. I’ll try to make a version to try a workaround in the next few days.