Re: There is no source code available for the current location

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: jlconley (jlconley_at_discussions.microsoft.com)
Date: 12/07/04


Date: Tue, 7 Dec 2004 12:42:14 -0800

I have seen it in both versions of .net. It is very annoying and I a fix was
available. I have found a work around for it though. Start your application
without debugging, then attach to the process. This is the same way you
would debug a service.

"snewman" wrote:

> Does anyone know what the underlying issue is? I am experiencing a similar
> problem: I'm running a Windows Forms application under the VS.NET debugger.
> The application has a menu item which runs a bunch of unit tests. I have the
> debugger set to trap on all exceptions (handled or otherwise). Quite often,
> if the unit test trips an exception and I drop into the debugger, it gives
> the "There is no source code available for the current location" message. On
> these occasions, breakpoints also don't seem to work (i.e. if I had placed a
> breakpoint prior to the error, it doesn't trip). The behavior is
> intermittent for me -- half the time everything is fine, other times I get
> this problem.
>
> It seems likely that I'm experiencing the same underlying bug, but I'm
> coming at it from a different direction, so I'm not sure what workaround to
> use. The bulk of my code is NOT running in a timer event. I do make some
> use of timers, but when I get the "no source code available" message, I'm
> usually not in a timer event. So I'm not sure how to apply the workarounds
> described in this posting or the KB article.
>
> So... does anyone know what the actual VS.NET bug is, or a more general
> workaround for it?
>
> One last note: the code I'm testing spawns a number of background threads,
> and sometimes calls Thread.Sleep. I don't know whether this might be a
> factor. Most of the interesting code is running in the main thread, and
> that's where I see the problem.
>
> -- Steve



Relevant Pages

  • Re: There is no source code available for the current location
    ... I'm running a Windows Forms application under the VS.NET debugger. ... It seems likely that I'm experiencing the same underlying bug, ... The bulk of my code is NOT running in a timer event. ...
    (microsoft.public.vsnet.debugging)
  • Re: Compiler Bug or what Im doing wrong?
    ... GNAT GPL'05 to GPL'06, only when certain compiler switches are used. ... Have you tried to run that with a debugger? ... I think I have found a workaround (if my guess on the ...
    (comp.lang.ada)
  • Re: Mico32, how good is it?
    ... The only tricky bit will be the debugger, ... Lattice JTAG block. ... Workaround that, and the rest should be no problem ...
    (comp.arch.fpga)
  • Re: VS2005 debugger problem
    ... Does anyone else have this problem with the debugger or a solution? ... The workaround is ok for now, ... Also, when debugging the script task, is it supposed to say Visual Studio ... Are you seeing this with Visual Studio 2005 SP1? ...
    (microsoft.public.vstudio.development)
  • Re: MSXML IXMLDomDocument Load problem
    ... You're understanding of how to workaround this is correct. ... > and if I'm reading it right we simply need to avoid attaching the debugger ... > in EVC when the tests run on this code, ... > Is there likely to be a hotfix appearing that includes this bug fixed in ...
    (microsoft.public.windowsce.embedded.vc)