Debugging a DLL

G

Guest

Hi... I had a VC++ 6.0 application that created a DLL to be used with another
C# app. I have convered that app to VS .NET 2003 and I can build the DLL
without making any changes to the existing code. However, when this DLL is
used by my C# application I get some memory errors.

I am not too well versed with VC ++ 6.0, could anybody tell me how I can
debug this DLL (liine by line) to find where the problem is?
 
S

Scot T Brennecke

In the Visual Studio IDE, in project settings for the C++ DLL, specify the C# application as the
executable to be run when debugging the DLL. Then you should be able to set breakpoints in the
source code for the DLL. When you start debugging, it will launch the C# application and the DLL
will be loaded into the process. When the breakpoint is hit, the debugger will stop and let you
step through the code.
 

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