C ++ Windows 7和10中的UI自动化问题 [英] UI automation issue in C++ windows 7 and 10

查看:210
本文介绍了C ++ Windows 7和10中的UI自动化问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为功能区栏写了辅助功能层,从Windows自动化它工作正常,但是Windows 10 exe崩溃(从自动化)我将uiautomation dll从Windows 7替换为Windows 10,它工作正常。



请让我知道可能是什么问题。



我尝试了什么:



加载'C:\ Windows \SysWOW64 \ UIAutomationCore.dll'。加载符号。

xxxx.exe中0x6DE65238(oleacc.dll)的第一次机会异常:0xC0000005:访问冲突读取位置0xFEEEFEF6。

0x6DE65238处的未处理异常(oleacc。 dll)在xxx.exe中:

0xC000041D:在用户回调期间遇到未处理的异常。

i wrote accessibility layer for ribbon bar, from automation in windows it is working fine ,but windows 10 exe is crashing ( from automation) i replaced uiautomation dll from windows 7 to windows 10, it is working fine.

please let me know what might be the issue.

What I have tried:

Loaded 'C:\Windows\SysWOW64\UIAutomationCore.dll'. Symbols loaded.
First-chance exception at 0x6DE65238 (oleacc.dll) in xxxx.exe: 0xC0000005: Access violation reading location 0xFEEEFEF6.
Unhandled exception at 0x6DE65238 (oleacc.dll) in xxx.exe:
0xC000041D: An unhandled exception was encountered during a user callback.

推荐答案

应用程序中的某些内容导致访问冲突,如异常消息中所示。您需要使用调试器来找出位置和原因。
Something in your application caused an access violation, as shown in the exception message. You need to use the debugger to find out where and why.


这是Windows 10上的一些版本问题。您应该仔细阅读使用过的函数来查找 stackoverflow讨论。也许您需要调试它或写一个日志文件。



提示:在W10上以管理模式运行代码以检查一些安全策略更改。
It is some version issue on Windows 10. You should carefully read about the used functions to find the differences like on stackoverflow discussed. Maybe you need to debug it or write a log file.

Tip: run your code in admin mode on W10 to check for some security policy change.


这篇关于C ++ Windows 7和10中的UI自动化问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆