all groups > visual studio .net debugging > august 2006 >
You're in the

visual studio .net debugging

group:

DLL debugging problem....


DLL debugging problem.... devmentee NO[at]SPAM hotmail.com
8/21/2006 7:18:48 AM
visual studio .net debugging:
Hi,

I have built a DLL in C++ (unamanged) and written a client app, also in

C++, to test it.
I set my DLL project as "start up" project and have specified the EXE
etc...My client app (exe) starts up fine, however I am unable to step
into the DLL code...when I try to step in
I get "There is no source code available for the current location"
error.


Also, I see "There are no more endpoints available from the endpoint
mapper." in the output window. I checked the DLL has pdb file built
etc...


Can someone please help or suggest something...


Thanks=20


dev=20


Reply =BB
Re: DLL debugging problem.... Oleg Starodumov
8/22/2006 12:00:00 AM

[quoted text, click to view]

Open Modules window and check if the DLL has been loaded from the correct
location, and if symbols have been loaded for the DLL.

If everything is correct (location correct, symbols loaded), try to set breakpoint
at the beginning of the DLL's function.

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]


Re: DLL debugging problem.... Devmentee
8/22/2006 2:01:20 AM
Hi Oleg

I looked at modules window an there is nothing in there. Yet, the DLL
is loading because the code in DLL executes. When I set the breakpoint
(I don't see the question mark) and nothing happens...the code just
continues without stopping...I am running my executable by making it a
startup project now - because I believe that setting a breakpoint in
dll code should still work (as opposed to starting a DLL as a startup
project).




[quoted text, click to view]
Re: DLL debugging problem.... Devmentee
8/22/2006 2:17:14 AM
I sorted it out! Many thanks for your help Oleg (modules window is
useful!)
[quoted text, click to view]
AddThis Social Bookmark Button