I keep getting "source not available" in the trace window on a new project
I'm working on. It is driving me nuts, I can't quite understand it but it
seems to be affected by my default directory......


I have a directory:
U:\foxpro\devlog

This is where my tables are.



I have another directory:
U:\foxpro\projects\devlog

This is where my source is.

If I do this:
SET DEFAULT TO u:\foxpro\devlog
[open trace window, open program "u:\foxpro\projects\devlog\devlog.exe"]
then any program I pick from the list of programs in the project tells me
"source not available"]

If I do this:
SET DEFAULT TO u:\foxpro\projects\devlog
then I can see the source in the trace window OK but of course it won't run
because the tables aren't there.

I've used this method in other directories for years. All of a sudden it's
not working, any ideas why?

--
TIA
Andrew Howell

Re: FPW2.6, source not available by Andrew

Andrew
Wed Nov 24 09:50:54 CST 2004

Andrew Howell wrote:
> I keep getting "source not available" in the trace window on a new
> project I'm working on. It is driving me nuts, I can't quite
> understand it but it seems to be affected by my default
> directory......


Umm, OK, I seem to have fixed it by deleting the project and recreating it
whilst my default directory was

u:\foxpro\projects\devlog


I've NEVER had to do this in other directories - the PJX had the wrong home
directory for all the files. What's going on?

--
TIA
Andrew Howell



Re: FPW2.6, source not available by Andrew

Andrew
Wed Nov 24 09:56:04 CST 2004

Andrew Howell wrote:
> Andrew Howell wrote:
> a load of rubbish....


Actually; the more testing I'm doing, the bigger the hole I'm digging for
myself. It seems I've just been lucky [or something] in the past and not run
into this [I mean I've only used this product for the last 7 years odd.]

Move on, nothing to see here.

--
Regards
Andrwe Howell



Re: FPW2.6, source not available by Bernhard

Bernhard
Wed Nov 24 11:56:56 CST 2004

Hi Andrew,

> I have a directory:
> U:\foxpro\devlog
>
> This is where my tables are.
>
>
>
> I have another directory:
> U:\foxpro\projects\devlog
>
> This is where my source is.
How about using SET PATH TO?

SET DEFAULT TO <tables dir>
SET PATH TO <source dir>
or vice versa

or
SET DEFAULT TO <some dir>
SET PATH TO <tables dir>;<source dir>

hth
Bernhard Sander

Re: FPW2.6, source not available by Paul

Paul
Wed Nov 24 14:40:27 CST 2004

What's going on is that 2.x projects tend to be old, poorly maintained, and
modified by several if not dozens of different people over the years. Some
programmers were also fond of creating screens or menus, generating the
code, then modifying the generated code - a horrible practice, IMO. Watch
out for that.

To avoid problems, try putting essential files together in a new directory,
weeding out duplicate files and functions, create a new project, and rebuild
from there. Don't throw out the old stuff until you're sure the new one
works, and even then, keep an archive.




"Andrew Howell" <ajh@work> wrote in message
news:Olhhj1j0EHA.3704@tk2msftngp13.phx.gbl...
> Andrew Howell wrote:
>> I keep getting "source not available" in the trace window on a new
>> project I'm working on. It is driving me nuts, I can't quite
>> understand it but it seems to be affected by my default
>> directory......
>
>
> Umm, OK, I seem to have fixed it by deleting the project and recreating it
> whilst my default directory was
>
> u:\foxpro\projects\devlog
>
>
> I've NEVER had to do this in other directories - the PJX had the wrong
> home
> directory for all the files. What's going on?
>
> --
> TIA
> Andrew Howell
>
>