Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debug Problem: Source Not Available
Message
From
18/10/2001 13:19:19
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/10/2001 11:55:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00570309
Message ID:
00570385
Views:
22
>I suddenly started receiving the message "Source not available" for a .prg when stepping through executing code.
>
>To make sure I wasn't having a version conflict or anything like that, I created several .prgs, each with a unique name, placed each in a separate subdirectory that participates in the project and modified some code to call each prg in turn. Each executed, but the the source was not available.
>
>I'm totally stymied--I've never had this problem before. Any ideas?
>The only thing that changed on my system was that last night I installed Diskeeper and ran it to defrag my hard drive, but I doubt that could have affected anything. I am seeing the source for classlib methods.

VFP caches code. At some point, after some extensive debugging (specially if you cancelled or selected debug/fix in debugger's menu), the debugger will get out of sync with the current version of the source - at least you're notified about that. In VFP5 I was seeing sometimes the previous version of source while the line pointer was going by new line numbers, so it seemed to execute comments sometimes. Sometimes debugger may keep a .fxp open and you wouldn't be able to recompile a .prg, for the same reasons.

You may try clearing everything - clear all, release all, clear program - but if it doesn't help, simply quit and restart Fox.
I don't know if I saw this in VFP7, though, it seems to be better with this.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform