我有使用 VS 2017 15.7.4 构建的应用程序,它是 64 位命令行 C++ 应用程序。
我已将它与所有依赖项 DLL 一起复制到装有 Windows 10 Enterprise 2016 LTSB 64 位(版本为 10.0.14393)的机器上。应用程序工作。
然后我将它复制到另一台具有相同版本 Windows 的机器上。它立即停止,消息停止工作。
编辑:找到原因,详情见评论
我试图解决的问题:
Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program my_program.exe because of this error.
Program: my_program.exe File:
The error value is listed in the Additional Data section. User Action
- Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
- If the file still cannot be accessed and
- It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
- It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
- Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
- If the problem persists, restore the file from a backup copy.
- Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.
Additional Data Error value: 00000000 Disk type: 0
最佳答案
正如评论者指出我找到答案的正确方法:
事后调试 - 附加 WinDbg - 向我显示错误是“非法指令”,该指令也是“vmovdqu”,它是 AVX 指令。并且实用程序CoreInfo显示 native CPU不支持AVX指令。解决方案是在没有此支持的情况下进行编译。
关于c++ - 如何找出应用程序崩溃的原因 - Win 10 LTSB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52781629/