Hi all, I am having an issue with writing to the OSG file cache when the filenames (including path elements) exceed 260 chars. This situation is arising when caching tiles from a relatively large paged database generated using VPB.
For example, I am trying to write the following file to the cache: C:\adi_vsfz\osg-filecache/192.168.0.1/terrain/ANewBeggining/earth/earth_ root_L0_X0_Y0/../earth_subtile_L5_X29_Y6/../earth_subtile_L5_X29_Y6/eart h_subtile_L11_X1859_Y402/../../Townsville-50k/earth_subtile_L5_X29_Y6/ea rth_subtile_L11_X1859_Y402/earth_L13_X7439_Y1609_l2.dds Once this converted to an absolute path, it exceeds the 260 char limit and is truncated as follows: C:\adi_vsfz\osg-filecache\192.168.0.1\terrain\ANewBeggining\earth\Townsv ille-50k\earth_subtile_L5_X29_Y6\earth_subtile_L11_X1859_Y402\earth_L13_ X7439_ After doing some reading, it seems there is a solution (http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#maxpat h) which will involve converting the path from relative to absolute, replacing all '/' with '\' and then prepending the magic characters '\\?\' to the start of the file name (i.e. do all the pre-processing myself then add some magic characters). I have a few questions in relation to this: 1) Does anyone know of a cleaner / better solution to this? 2) If not is there any utility functions already available to help with this? 3) What is the appropriate place within OSG to modify to have this handled internally? Ideally I would like to code a solution that works across the board. 4) When creating a fix for this, is this something that only effects windows? I believe it is but I do not have a lot of experience with the various other platforms OSG supports. Cheers, Brad DISCLAIMER:--------------------------------------------------------------------------- This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. -------------------------------------------------------------------------------------- _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

