【问题标题】:Error debugging C code with DLL at Eclipse在 Eclipse 中使用 DLL 调试 C 代码时出错
【发布时间】:2014-05-21 16:58:52
【问题描述】:

我正在使用带有 MinGW 的 Eclipse C/C++ IDE 来运行和调试我的应用程序。 当我运行它时它工作正常,但是当我调试我的应用程序崩溃时

这是我的代码:

#include <windows.h>
#include <stdio.h>

void loadDLL() {
        int handle = LoadLibrary("teste.dll");
        printf(handle == 0 ? "\n DLL not loaded." : "\n DLL loaded.");
}

int main() {
    loadDLL();

    printf("\n Press any key to exit.\n");
    return 0;
}

运行我的应用程序:

DLL loaded.
Press any key to exit.

然后当我调试时:http://s30.postimg.org/bxgrdry5t/error.png

当我在 LoadLibrary Step Over 时发生错误。 我的 DLL 是用 Borland C++ IDE 创建的,我无法更改它。

【问题讨论】:

  • 我不想调试我的DLL,我只想跳过

标签: c eclipse debugging dll


【解决方案1】:

我的朋友找到了问题的解决方案!

我需要在我的应用程序启动器中取消选中一个选项。 选项是自动加载共享库符号

AppLauncher >> 调试器 >> 共享库

【讨论】:

    猜你喜欢
    • 2013-09-29
    • 2020-03-06
    • 1970-01-01
    • 2016-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-31
    • 1970-01-01
    相关资源
    最近更新 更多