logo       

Re: Working directory: msg#01546

Subject: Re: Working directory
Christophe,

On Friday 09 December 2005 14:23, Christophe Costa Florencio wrote:
> Hi,
>
> I encountered some unexpected behaviour with compiled SWI code. I use XPCE
> 6.4.3 with SWI-Prolog version 5.4.7 on WinXP SP2.
> It seems that in compiled SWI code, as soon as the working directory is
> changed, the value of W in
>
> current_prolog_flag(executable, W)
>
> is set to the current working directory. This does not happen when doing
> this from the command line.
> Is this supposed to happen? There may be something else going on, the code
> I'm working on is quite complex, and I haven't done thorough testing yet.

Sounds highly dubious. Of course it wasn't designed to work like this. I
definitely do need code to reproduce this. Smaller is better, but not
strictly necessary. I'll use the C-debugger with a watch-point on the
flag value anyway.

        Cheers --- Jan




<Prev in Thread] Current Thread [Next in Thread>