Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / January 2007

Tip: Looking for answers? Try searching our database.

How to debug a DLL?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gaurav - 31 Jan 2007 19:07 GMT
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?
David Lowndes - 31 Jan 2007 20:38 GMT
>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
[quoted text clipped - 3 lines]
>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?

Build the debug configuration of your DLL.
Put some breakpoints in key places of your source code.
Press F5 to run it and you'll probably be prompted for the path of the
executable you want to run (presumably you'll specify the exe produced
by your C# application here).
When the program loads your DLL your breakpoints should get enabled,
and after they're hit you should be able to step through your code and
examine variables, etc in order to find your problems.

Dave

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.