我的程序意外完成 [英] My program has unexpectedly finished

查看:245
本文介绍了我的程序意外完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个最简单的程序在发布模式下编译时会产生错误,但是在调试模式下编译错误:

this simplest program gives error when compiled in release mode, but compiles fine in debug mode:

#include <QApplication>

int main(int argc, char* argv[])
{
    QApplication app(argc,argv);

    return app.exec();
}

ERROR(从qt的控制台输出)

ERROR (output from qt's console)


*开始C:\excercizes\QT_projects\Line_Counter-build-desktop-Qt_4_7_4_for_Desktop _-_ MinGW_4_4__Qt_SDK__Release\release\Line_Counter.exe ...
程序意外完成。
C:\excercizes\QT_projects\Line_Counter-build-desktop-Qt_4_7_4_for_Desktop _-_ MinGW_4_4__Qt_SDK__Release\release\Line_Counter.exe已退出,代码为-1073741511 *

*Starting C:\excercizes\QT_projects\Line_Counter-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release\release\Line_Counter.exe... The program has unexpectedly finished. C:\excercizes\QT_projects\Line_Counter-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release\release\Line_Counter.exe exited with code -1073741511*

任何人都有这样的经历?

Anyone had this experience?

推荐答案

值-1073741511是十六进制的0xC0000139,这是错误代码STATUS_ENTRYPOINT_NOT_FOUND。这意味着某些DLL由EXE或另一个DLL加载,但它缺少EXE或另一个DLL期望的函数。

Value -1073741511 is 0xC0000139 hexadecimal, which is error code STATUS_ENTRYPOINT_NOT_FOUND. This means that some DLL is loaded by EXE or another DLL, but it lacks a function that EXE or another DLL is expecting there.

事件查看器可能会显示什么DLL缺少什么函数时发生错误。 Dependency Walker 也会向您显示此信息以及整个DLL结构。

Event Viewer may show you what DLL is lacking what function when the error occurs. Dependency Walker will also show you this, and the whole DLL structure as well.

这篇关于我的程序意外完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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