chacham15
chacham15

Reputation: 14251

How can I determine what libraries are dynamically loaded?

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

Answers (3)

Kyle C
Kyle C

Reputation: 1637

I would use Dependency Walker This is a pretty fantastic tool that I use a lot in debugging loaded libraries.

Upvotes: 4

Luchian Grigore
Luchian Grigore

Reputation: 258618

Double click the exe and an exception should be triggered, which shows the missing library.

Upvotes: 1

alanxz
alanxz

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

Related Questions