[Ctk-developers] problem with ctkDICOMViewer on Windows XP

Steve Pieper pieper at bwh.harvard.edu
Tue Feb 15 13:31:04 UTC 2011


Hi Xiaodong -

Ah - I think you are correct - we didn't run into that on our testing. 
it looks like we need to keep the path lengths pretty short (under 255 
characters or so).

http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx

The motivation for creating the hierarchy was to avoid having too many 
files in a single directory, but also to have a clear mapping from dicom 
ids to filenames.

http://ask-leo.com/is_there_a_limit_to_what_a_single_folder_or_directory_can_hold.html

Perhaps we should create some kind of hash of the UID... perhaps the 
filename should be the base64 encoding of the zlib compressed the UID?

-Steve

p.s. thanks for checking out the new code!

On 02/15/2011 07:52 AM, Stephen Aylward wrote:
> I have definitely seen path and filename length issues with windows
> programs before.  Thanks for reporting this.
>
> S
>
> -- Sent from an Android phone.  Please forgive the typos.
>
> On Feb 15, 2011 6:08 AM, "zhang xiaodong" <zxdflyer at 163.com
> <mailto:zxdflyer at 163.com>> wrote:
>  > Hello, everyone
>  > I downloaded the latest version of ctk and compiled it with VS2008 on
> windows XP successfully. Then I tested the examples, such as
> ctkDICOMIndexer, ctkDICOMViewer. ctkDICOMIndexer works well, but there
> is something wrong with ctkDICOMViewer.
>  > When I import dicom directory of files, it could not create the
> related dicom files and thumbnails in the database path. Have checked
> the code, I did not find anything wrong. However, I found the dicom file
> or thumbnail path is so long that I wondered if the length of the path
> has exceed max_length of windowsXP.
>  > for example, this is one of the paths created after I import a dicom
> directory:
>  >
> D:\CTK\bin\CTK-build\bin\Debug\thumbs\1.2.840.113619.2.244.6945.2466594.25089.1255409654.794\1.2.840.113619.2.244.6945.2466594.25089.1255409654.792\dicom\1.2.840.113619.2.135.3596.6134758.4831.1168041039.905\
> 1.2.840.113619.2.135.3596.6134758.4614.1168041101.474
>  >
>  > And when I try to open the directory
> 1.2.840.113619.2.135.3596.6134758.4614.1168041101.474, there is no
> response. Then I used cmd to open it, it said: can not find the
> diectory. So I think the problem should be the path length which exceeds
> windowsXP's limit.
>  >
>  > Did anyone meet problems like this ? It would be great appreciated if
> anyone could help me with it. Thanks very much.
>
>
>
> _______________________________________________
> Ctk-developers mailing list
> Ctk-developers at commontk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers



More information about the Ctk-developers mailing list