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 / Visual Studio.NET / Debugging / June 2004

Tip: Looking for answers? Try searching our database.

"There is no source code available for the current location"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jamie Phillips - 16 Sep 2003 11:10 GMT
Hi All,

I've got a particular problem with some managed code. I wrote a .Net plugin
for an existing Win32 application, which obviously meant writing the related
managed and non-managed sections of code. The solution builds with no
problems and executing the application produces the desired results, so for
my intents and purposes everything works. However, the downfall comes about
when I try to debug. The main thread, doesn't seem to have any problem, but
beyond that there seems to be no way to be able to step into a breakpoint -
the only thing I get is:

"There is no source code available for the current location" and it offers
to step into the dissasembly. If I run the app without any brekpoints there
doesn't seem to be any problem. But the moment I set a breakpoint, the whole
app crashes.

I don't know if this is a multithreading issue or just simply a managed code
issue. Ideas please ASAP, need to get this resolved before I start losing
clients.

Jamie
Espen Eriksmoen Løke - 16 Sep 2003 14:57 GMT
I seem to have a similar problem. I have an MFC
application which has been converted to mixed mode. I
consists of an exe (mixed mode), 2 mixedmode dll's and a
couple of native dll's. The app seems to work fine utp to
the point I wish to debug. For some reason I can debug
one of the mixed mode dll's and the exe,but not the third
mixed mode dll.

In order to get the app working I have added my own main
function in the exe, calling __crt_dll_initialize
explicitly in each of the mixed mode dll's and finally
calling WinMainCRTStartup. I also needed to move the
CWinApp theApp; (MFC class) part into the main() function
and there use pTheApp = new CWinApp. Otherwise the MFC
static variables would be messed up.
Deeptanshu Verma [MSFT] - 07 Jun 2004 01:54 GMT
I do not know if this issue is still alive, but in case it is, I would like
to confirm that this code you are trying to hit the bp in is managed code
being called from your native Win32 app.

Can you step into the function from its calling function (set bp one level
up the call stack)? I am trying to determine whether this is a source
location problem or a bp problem.

Thanks & regards,
Deeptanshu.

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

BCC - 07 Jun 2004 21:16 GMT
> I do not know if this issue is still alive, but in case it is, I would like
> to confirm that this code you are trying to hit the bp in is managed code
[quoted text clipped - 6 lines]
> Thanks & regards,
> Deeptanshu.

The issue is very much alive, please see my following post.  In answer to
your question though, no, I cannot step into the function (a virtual
function) from the function call.  I can hack my way to the source by using
a combination of the call stack and toggling disassembly, but that is really
not nice.

I am hoping there is a fix for this somewhere, otherwise I will have to go
back to vc6.0.

Thanks,
Bryan
Deeptanshu Verma [MSFT] - 25 Jun 2004 02:10 GMT
Hi Bryan,

I apologize for the delayed reply. I need to know more about your debuggees. In my case I have a C# Dll that I register using regasm creating a tlb file and then use the
tlb file in the C++ Exe to use the Dll and call its methods.

These are admittedly simple dll & exe, but I can step in from the Exe's call, this lands me into the .tli file, from where I can step into the dll call. So there is an intermediate
.tli frame while doing step-in. Nevertheless the step-in worked and so does the breakpoint.

I would appreciate it if you could describe what your dll and exe are like and how you call the dll from the exe, and I will try to repro this bug from the same configuration.

Also : When you are in the disassembly during your stepping as you describe below, which module does the callstack show you to be in?

Thanks,
D.V.

Signature

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.  

--------------------

>From: "BCC" <bryan@akanta.com>
>Newsgroups: microsoft.public.vsnet.debugging
[quoted text clipped - 12 lines]
>Organization: SBC http://yahoo.sbc.com
>X-UserInfo1: [[PAPDONWZVMRQPXNCOF_W\@PJ_^PBQLGPQRJVMHQAVTUZ]CLNTCPFK[WDXDHV[K^FCGJCJLPF_D_NCC@FUG^Q
\DINVAXSLIFXYJSSCCALP@PB@\OS@BITWAH\CQZKJMMD^SJA^NXA\GVLSRBD^M_NW_F[YLVTWIGAXAQBOATKBBQRXECDFDMQ\DZFUE@\JM
>Date: Mon, 07 Jun 2004 20:16:37 GMT
>Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!
border2.nntp.dca.giganews.com!nntp.giganews.com!feed2.newsreader.com!newsreader.com!newshosting.com!nx02.iad01.newshosting.com!news-
feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!prodigy.com!newsmst01a.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!
newssvr29.news.prodigy.com.POSTED!ee5713ec!not-for-mail
>Xref: cpmsftngxa10.phx.gbl microsoft.public.vsnet.debugging:5792
>X-Tomcat-NG: microsoft.public.vsnet.debugging
[quoted text clipped - 22 lines]
>Thanks,
>Bryan

Signature

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.


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.