Reputation: 14251
My program gives this error under gdb: During startup program exited with code 0xc0000135.
I've put a breakpoint at main
, __main
, __getmainargs
, _imp____getmainargs
, and mainCRTStartup
but none of them get hit before the error is thrown. I did a little googling and found that the error comes from a failed LoadLibrary
call (which obviously, I didnt call).
So my question is how do I determine what library it is trying to load?
Upvotes: 0
Views: 635
Reputation: 1637
I would use Dependency Walker This is a pretty fantastic tool that I use a lot in debugging loaded libraries.
Upvotes: 4
Reputation: 258618
Double click the exe
and an exception should be triggered, which shows the missing library.
Upvotes: 1
Reputation: 2026
You could try running your program under Process Explorer. It should be able to tell you whats loaded, even if the program won't start.
Upvotes: 0