Using the new pseudo stable release I encountered the same problem I had
using the first pseudo stable release:

CS uses the file vfs.cfg from the CS installation directory instead of
the one in my project directory (which is of cause different from the CS
installation directory :).

I'm not calling this a bug, because I'm not sure if I forgot something
to configure :)

I tracked the problem down to the member function csVFS::Initialize in
plugins/filesys/vfs/vfs.cpp and the way the vfs.cfg file is found. This
is done by the following four steps:

1) vfs.cfg found via the environment variable CRYSTAL_CONFIG
2) vfs.cfg found in the CS installation directory
3) vfs.cfg found in the current directory (= current project directory)
4) vfs.cfg found via the #define CS_CONFIGDIR

If more than one vfs.cfg is found, the first one (configPaths[0]) is
taken. And this is the problem, because the vfs.cfg in the current
directory is not being used unless the one in the CS installation
directory is removed, which seems not be an good idea. Setting the
CRYSTAL_CONFIG environment variable is not a suitable way, because this
works for only one project.

My suggestion is to rearrange the steps described above:

1) vfs.cfg found in the current directory (= project directory)
2) vfs.cfg found via the environment variable CRYSTAL_CONFIG
3) vfs.cfg found via the #define CS_CONFIGDIR 
4) vfs.cfg found in the CS installation directory

Yours,
Ronald

-- 
--------------------            /"\
Ronald Kurz                     \ /   ASCII Ribbon Campaign
[EMAIL PROTECTED]               X    Against HTML Mail
                                / \
:wq!



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to