Debugging C callable dlls from C#

G

Guest

I have a C# application that loads a C callable dll via DllImport. The
function gets called fine, but I can not debug it (Step into it). When the
dll loads, the symbols are not found, and also the break point has the "?"
all the time.

What is going wrong here? I have tried everything I can think of.

I am currently using Visual Studio .NET 2003.

Thanks,
Scott.
 
G

Guest

Do you have 'Enable Unmanaged Debugging' set in your project properties? I
can only make this work with a debug build of the dll where the functions are
declared as extern "C". I haven't tried attachng a remote debugger, that
would probably work, you can set the path to the symbols and source code.
 
G

Guest

Hi John,

Thank you for the help. I can not tell you how many times I looked at this
property and did not see this option. I enabled it and now debugging my dll.

Thanks,
Scott.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top