By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,160 Members | 1,323 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,160 IT Pros & Developers. It's quick & easy.

Debugging a DLL

P: n/a
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?

Jan 31 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

"Gaurav" <Ga****@discussions.microsoft.comwrote in message
news:71**********************************@microsof t.com...
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?

Feb 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.