Hi Manfred,
On Fri, 2004-02-13 at 09:29, Manfred Weiler wrote:
> Hi Folks,
>
> having some troubles with the PathHandler functionality of OpenSG
> I was wondering two things:
>
> 1. Why does the PathHandler not support absolute paths.
> (At least in Windows it is not possible to search for an
> absolute path including volume letter)
> This resulted in some workarounds in the OpenSG core code and
> imho. does not make any sense because it can rather easily
> incorporated in the PathHandler.
The PathHandler has code to handle absolute pathes. It tries to analyze
the path to see if it's a Windows or Unix path, and if it's a Windows
path checks the second character for ':' to see if it's absolute. The
only thing I could imagine is that the Win32 detection goes wrong on
your example (well, either that or there's a bug somewhere :). What was
the exact path you tried it on? Can you try setting the OSG_LOG_LEVEL to
notice? In that case the PathHandler will print info about which pathes
it tries.
> 2. Why do I explicitly have to add the current directory to the
> PathHandler. O.K. this is rather come inconvenience but it is
> not the behaviour I would expect.
We thought about adding that as a default, but then you would have to
have specific API calls to remove it in cases where you don't want it,
thus we decided to have the users add it explicitly. It just some thing
you need to know, as it's not a big deal to do it.
> BTW. Find attached a patch that allows the DATImageFile handler to
> also use the PathHandler functionality.
Integrated, thanks for the patch. Is there a specific reason for using
the FLOG? FWARNING is generally more appropriate.
Yours
Dirk
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users