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

标签 c++ qt debugging

我正在使用 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/

相关文章:

java - Java中如何记录被finally block 异常屏蔽的异常?

debugging - 调试时如何在matlab中记录日志?

c++ - 不能包含 cliext header (对于 c++ cli、Visual Studio)

c++ - Qt C++ setWindowTitle() 两行

c++ - 计算第 n 个加泰罗尼亚数

c++ - 获取 Qt 应用程序中的当前工作目录

c++ - 将 QString 转换为 Local8bit,然后将 String 转换为 QString

java - 错误: method addActionListener in class AbstractButton cannot be applied to given types

c++ - If 语句逻辑 - 对象数组

c++ - 结构指针的运算符重载