I have developed a Windows UI automation tool using C#. I am automating an external Windows application with this tool. It was working well untill one of the Windows update installed on my machine.
From my c# side code, I am getting below exception:
A first chance exception of type 'System.Windows.Automation.ElementNotAvailableException' occurred in UIAutomationClient.dll
This exception comes whenever I locate any control with mouse on external application.
Now, when I debug the external application itself, then I am getting below exception:
Exception thrown at 0x577960F6 (UIAutomationCore.dll) in XXX.exe: 0xC0000005: Access violation reading location 0xC218C48F.
I do not understand relationship between these two exceptions.
Could you please tell me the relation and why these errors come?
OS: Windows 10
Build:Version 20H2 (OS Build 19042.1165)
Visual Studio 2015
Thank you in advance.