I'm using Eclipse C/C++ IDE with MinGW to run and debug my aplications. When I run it works fine but when I debug my application crash
Here is my code:
#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;
}
Running my application:
DLL loaded.
Press any key to exit.
And when I debug then: http://s30.postimg.org/bxgrdry5t/error.png
The error occurs when I Step Over at LoadLibrary . My DLL was created with Borland C++ IDE and I can't change it.
My friend found the solution of the problem!
I needed o uncheck an option at my application launcher. The option is Load shared library symbols automatically at:
AppLauncher >> Debugger >> Shares Libraries
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.