0

当使用带有 Windows 11 操作系统的 UISpy 检查桌面应用程序的控件时,它会在每个控件的“输出”窗格中引发异常

Time Stamp : 28/01/2022 9:38 AM
Element : "combo box" "Payment To"
Name : AccessViolationException
Message : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack Trace :    at MS.Internal.Automation.UiaCoreApi.RawUiaHPatternObjectFromVariant(Object& var, SafePatternHandle& hnode)
   at MS.Internal.Automation.UiaCoreApi.UiaCacheResponse.ConvertFromComTypesToClrTypes(Object[,] data, UiaCacheRequest request)
   at MS.Internal.Automation.UiaCoreApi.UiaGetUpdatedCache(SafeNodeHandle hnode, UiaCacheRequest request, NormalizeState normalize, Condition customCondition)
   at System.Windows.Automation.AutomationElement.GetUpdatedCache(CacheRequest request)
   at UISpy.Base.Node.GetUpdatedCache(CacheRequest cacheRequest)

它发生在应用程序中的几乎所有控件上,因此控件属性显示为“{null}”

当我使用 Windows 10 操作系统时,我没有遇到这个问题。

任何想法为什么这可能会在 Win11 中发生?

4

0 回答 0