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++ / April 2007

Tip: Looking for answers? Try searching our database.

Debugging Unmanaged Library From Managed Library

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Howard Swope - 23 Apr 2007 17:08 GMT
I have a series of third party libraries for which we have licensed the
source code. These are unmanaged libraries written in C++ which I am able to
build without any trouble. I am trying to setup my environment so that I can
step into their code form my managed .dll written in managed C++ (.Net 1.1).
I just can't seem to get my code to step into their source file.

What Am I missing? What files are required to make this happen? Is there a
certain directory structure they need to maintain to locate a source file?
Etc?

Thanks,

Signature

Howard Swope [hswope.swopeATnavteqDOTcom]
Software Engineer
Media Development
Navteq Traffic [http://www.traffic.com]

David Lowndes - 23 Apr 2007 17:38 GMT
>I have a series of third party libraries for which we have licensed the
>source code. These are unmanaged libraries written in C++ which I am able to
[quoted text clipped - 3 lines]
>
>What Am I missing?

There's a setting on the project debugger settings to allow mixed mode
debugging.

Dave
Bruno van Dooren - 24 Apr 2007 08:51 GMT
> >I have a series of third party libraries for which we have licensed the
>>source code. These are unmanaged libraries written in C++ which I am able
[quoted text clipped - 9 lines]
> There's a setting on the project debugger settings to allow mixed mode
> debugging.

You also need to make sure that the source files match the debug build of
your unmanaged libraries.
I have noticed that if I changed a source file after a build, then the
debugger won't break on the breakpoints in the unmanaged sources. This makes
sense of course, but it is one of the pitfalls that I once fell into.

Signature

Kind regards,
   Bruno van Dooren  MVP - VC++
   http://msmvps.com/blogs/vanDooren
   bruno_nos_pam_van_dooren@hotmail.com

John - 24 Apr 2007 16:20 GMT
I have the same situation that I can't step into the unmanaged lib
code.  The project debuger/mixed setting didn't have any effect on
this (I tried it instead of the default auto).
In my case I have 4 libs (unmanaged) compiled using a separate
solution and linked as static libs into the current solution (all
using vc++ 8 with clr support). Somehow I can only step into one of
the libs, but not the other three.
I noticed all VC projects using vc80.pdb by default. Could this be the
issue? Appreciate if anyone can shed some lights on this.
Thanks
zz
Bruno van Dooren - 25 Apr 2007 10:04 GMT
>I have the same situation that I can't step into the unmanaged lib
> code.  The project debuger/mixed setting didn't have any effect on
[quoted text clipped - 3 lines]
> using vc++ 8 with clr support). Somehow I can only step into one of
> the libs, but not the other three.

Try putting those projects in the same solution. That takes care of a lot of
problems usually.

Signature

Kind regards,
   Bruno van Dooren  MVP - VC++
   http://msmvps.com/blogs/vanDooren
   bruno_nos_pam_van_dooren@hotmail.com

John - 24 Apr 2007 18:12 GMT
> There's a setting on the project debugger settings to allow mixed mode
> debugging.

The default is auto that should take care of this (I also tried mixed,
no difference). I've the same issue with externally compiled libs
(meaning lib projects are not part of the current solution). The
debugger won't go into the libs at all. The static libs are unmanaged C
++ compiled with clr support using the same vc8.0.  Has anyone one
experienced anything like this? Could the default pdb file name
vc80.pdb for multiple projects cause any issue?

Thanks
zz

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.