Debugging a DLL

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
Back
Top