ccote
ccote

Reputation: 121

Unable to find a .dll in the modules window (VS 2008 C++)

This is kind of a stupid question I guess, but I have a library which is included and used in a project, compiled as a .dll. Everything compiles fine. When I reach a function in this library, I get System.AccessViolationException and I cannot enter into it while debugging because it says the symbols are not loaded.

I have looked in the modules window, and I cannot find my .dll

Why?

Thanks.

Upvotes: 1

Views: 748

Answers (1)

David Gladfelter
David Gladfelter

Reputation: 4213

This may be a managed/unmanaged debugging issue. You won't see unmanaged DLL's if you are doing managed debugging, and vice-versa. The "automatic" option where VS tries to guess what kind of debugging you want doesn't always work.

Try attaching to the process after it is loaded and then specify both managed and unmanaged debugging in the dialog that pops up when you choose the Debug->Attach To Process menu option.

Upvotes: 4

Related Questions