Re: Source not available

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



Hi Jeff,
the project and form (as well as all other files in the project) are in the same directory.
I'm working in the IDE and not from an app or exe.
I put a breakpoint in the method code either with IDE or with SET STEP ON.
At the correct point, the debugger opens but I get the "source not available"
Here is one more clue (possibly)
The form's main behavior (a method) is called from the form's activate method. With most of my forms I call the methods from the forms init method. This one doesn't work unless its called from the activate method.

Does not ring any particular bells... Unless you work with 2 vfp instances, edit in one and run/debug in the other. This can sometimes create problems - maybe yours as well.

Is this a form you run directly from the IDE after chhanging or is this run the more traditionall App way of calling a main.prg in the IDE which then calls the form directly or via menu ?

Please check if you can see prg/vcs/scx code - even if you usually don't use Prgs, the visibility in debug sometimes differs between them and that can put you on the right track (made myself wonder my sanity when I first encountered it...). Try to create a stub start prog just to try to find out if you can see the line in the program at the lowest stack level.

Then you might check if curdir() is manipulated somewhere. If it is a problem of calling from .activate(), you might play around with calling up through bindevent() or some timer gymnastics - set a flag to run after 20ms for once for instance. As the debugger sometimes changes event behaviour, might be not as strange as it sounds.

HTH

thomas
.



Relevant Pages

  • Re: Walkthrough Instruction Error
    ... Well what you didn't say was that your code couldn't be run from the IDE. ... Whether or not it is in process or out of process is in itself insignificant, what is important is the overhead of marshalling and synchronization. ... The only advantage out of process has is it doesn't necessarily pull the app down if it crashes. ...
    (microsoft.public.vb.general.discussion)
  • Re: You finally beat me down
    ... I have spent a number of years developing a certain app ... ... installing components crash the IDE? ... Your stock VCL controls lack the most basic functionality. ... native app to build, it will be in WTL/wxWidgets or QT. ...
    (borland.public.delphi.non-technical)
  • Re: Great SWT Program
    ... functionality I'll use a *real* IDE like Eclipse. ... emacs, but eclipse is also a vastly superior IDE with, particularly, a ... then I don't need the app to be able to do ... Running it 1000 times in a loop makes this especially visible. ...
    (comp.lang.java.programmer)
  • Re: How to debug an ActiveX DLL
    ... You don't even need the main application in the IDE Dag. ... Just loaded the VB project for the DLL into the IDE, ... instruct it to run your main app whenever you want to debug the VB DLL. ... I'm a real novice when it comes to ActiveX DLLs, ...
    (comp.lang.basic.visual.misc)
  • Re: .net IDE Shuts Down during a build
    ... I did not get to try your solution coz .. ... Shut down the IDE ... Then envoke the web app from the browser, then open the IDE, then ... > which you can re-enable the network connections and the IDE seems to be OK ...
    (microsoft.public.vsnet.ide)