gpt4 book ai didi

c++ - Qt 5.1.1调试错误代码-1073741521

转载 作者:行者123 更新时间:2023-11-28 02:36:53 25 4
gpt4 key购买 nike

我正在使用 Qt Creator 2.8.1,基于 Qt 5.1.1(MSVC 2010,32 位),Windows 7 64 位。

我想调试我的代码,它编译成功,但运行时出错(返回值 -1073741521):

Starte D:_work_\applications\my_app\debug\my_app.exe...Das Programm ist abgestürzt. D:_work_\applications\my_app\debug\my_app.exe beendet, Rückgabewert -1073741521

我认为这不是应用程序的问题,因为我尝试创建一个空项目并对其进行调试,但效果不佳。

我在另一台运行 Windows 7 的 PC 上安装了相同的 Qt 版本,一切正常。

任何想法可能会导致此问题,如果解决它怎么办?

附言。如果缺少任何重要信息,请告诉我,我会尽力提供。

最佳答案

有一个解决方案here对于这个问题。它指出:

1) Make sure you have the path system with this

c:\qt\2009.05\qt\bin;c:\Qt\2009.05\bin

respect the order this is important

2) check your "windows\system32" dir and see if there is any qt dll's like qtcore4.dll, qtcore4d.dll qtgui.dll qtopengl.dll., etc

if there are, and if you know that you dont have any program that will need them, just deleted them, if not update them with the dll's from c:\qt\2009.05\qt\bin. This should work.

The problem is that if you have the correct path, it will still crash because it will look first in the windows system for the librarys.

And if you update the windows system with qtcore4.dll it will still crash because will use the wrong qtgui.dll and others altought (and this is the nasty part to debug) the error message will still be related with qtcore4.dll.

So in windows\system32 you have to update all of them, or delete all of them.

尽管我建议您在删除文件之前备份所有文件(如果这适用于您的话)

关于c++ - Qt 5.1.1调试错误代码-1073741521,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27145759/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com