Hello,

I have a console/debug project in Delphi 2007.

The compiler complains it cannot find the following file:

Z:\Delphi\Technology\TDataTransferCommunication\version 1.29 implement
integrity method for protocol 2 and multiple integrity
methods\DebugProgram\version 0.11 test improved integrity implementation and
maybe even crc32 checking\unit_TdebugHash_version_001.dcu

The uses clausule simply looks like:

uses
unit_TdebugHash_version_001 in 'unit_TdebugHash_version_001.pas';

Project is in the same folder.

Files are located on a FileDisk Image.

So I see a couple of possibilities:

1. Delphi 2007 IDE or the Delphi 2007 compiler is limited to 255 characters
for a filepath/filename ?

2. Windows XP X64 Pro is limited to 255 characters for a filepath/filename ?

3. FileDisk Image is limited to 255 characters for a filepath/filename ?

This requires further investigation.

I shall make some other projects with insanely long folders and filenames to
see what happens ;)

STAY TUNED ! :(

Bye,
Skybuck.

Re: Filepath/Filename beyond 255 characters ? by Skybuck

Skybuck
Thu Feb 28 03:19:51 PST 2008

HOLYSHIT.

It's much, much, much worse then my greatest fear.

It's a Windows XP X64 Pro LIMITATION ?! AAAAAAAAAAAAAAHHHHHHHHHHHHHH
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

For example I create a folder called:

"
test if delphi can find this insanely long folder which should have so many
characters that it at least exceeds 255 characters hopefully my fucking file
disk image wont get corrupted by this fucking long folder others I am
screwed
"

Then when I try to create a sub folder in that long folder windows says:

"Unable to create the folder 'New Folder'"
"The filename or extension IS TOO LONG"

WHAT THE FUCK ?!?!?!?!?!?!?!

Well at least it's not a file disk image limitation (???) (Though it does
have the same limitation)

(Because I tested this on a normal ntfs partition as well)

And at least no corruption so far occured.

Needless to say, THIS SUX.

THIS NEEDS TO BE FIXED.

I WANT LONG FILENAMES AND LONG FOLDERNAMES.

AHHHHH. ARGHHH >>>>>>(((((((

Maybe there is an option to enable longer filenames and foldernames ???

Or some other kind of solution ???

Bye,
Skybuck.



Re: Filepath/Filename beyond 255 characters ? by David

David
Thu Feb 28 05:10:54 PST 2008

In article <153f6$47c695cf$541983fa$25503@cache1.tilbu1.nb.home.nl>,
spam@hotmail.com says...
> Hello,
>
> I have a console/debug project in Delphi 2007.
>
> The compiler complains it cannot find the following file:
>
> Z:\Delphi\Technology\TDataTransferCommunication\version 1.29 implement
> integrity method for protocol 2 and multiple integrity
> methods\DebugProgram\version 0.11 test improved integrity implementation and
> maybe even crc32 checking\unit_TdebugHash_version_001.dcu
>
> The uses clausule simply looks like:
>
> uses
> unit_TdebugHash_version_001 in 'unit_TdebugHash_version_001.pas';
>
> Project is in the same folder.
>
> Files are located on a FileDisk Image.
>
> So I see a couple of possibilities:
>
> 1. Delphi 2007 IDE or the Delphi 2007 compiler is limited to 255 characters
> for a filepath/filename ?
>
> 2. Windows XP X64 Pro is limited to 255 characters for a filepath/filename ?
>
> 3. FileDisk Image is limited to 255 characters for a filepath/filename ?

The inherent NTFS limit is 32767, but most windows programs have a limit
of 260 characters. I don't know where that limit comes from, though.

....

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).

Re: Filepath/Filename beyond 255 characters ? by Skybuck

Skybuck
Thu Feb 28 05:36:17 PST 2008

HOLYFUCK.

Now I finally understand what happened to some other files in that folder
!!!! AND IT'S NASTY !!!

When I copy a folder with files into such a long foldername: THE FILE NAMES
GET TRASHED !!!!

Like:

Some_F~1.pas

Then when I copy the folder back to some short folder, the filenames REMAIN
FUCKED.

THIS IS A VERY NASTY FILTHY MEAN ISSUE/PROBLEM/BUG/SHORTCOMING IN WINDOWS
!!!

This is probably related to the other posting I made about windows explorer
hanging in such folders when copieing and renaming folders in such a long
folder with fucked up file names. VERY NASTY.

Bye,
Skybuck.

"Skybuck Flying" <spam@hotmail.com> wrote in message
news:45daa$47c697ef$541983fa$24793@cache3.tilbu1.nb.home.nl...
> HOLYSHIT.
>
> It's much, much, much worse then my greatest fear.
>
> It's a Windows XP X64 Pro LIMITATION ?! AAAAAAAAAAAAAAHHHHHHHHHHHHHH
> NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
>
> For example I create a folder called:
>
> "
> test if delphi can find this insanely long folder which should have so
> many characters that it at least exceeds 255 characters hopefully my
> fucking file disk image wont get corrupted by this fucking long folder
> others I am screwed
> "
>
> Then when I try to create a sub folder in that long folder windows says:
>
> "Unable to create the folder 'New Folder'"
> "The filename or extension IS TOO LONG"
>
> WHAT THE FUCK ?!?!?!?!?!?!?!
>
> Well at least it's not a file disk image limitation (???) (Though it does
> have the same limitation)
>
> (Because I tested this on a normal ntfs partition as well)
>
> And at least no corruption so far occured.
>
> Needless to say, THIS SUX.
>
> THIS NEEDS TO BE FIXED.
>
> I WANT LONG FILENAMES AND LONG FOLDERNAMES.
>
> AHHHHH. ARGHHH >>>>>>(((((((
>
> Maybe there is an option to enable longer filenames and foldernames ???
>
> Or some other kind of solution ???
>
> Bye,
> Skybuck.
>



Re: Filepath/Filename beyond 255 characters ? by Joe

Joe
Thu Feb 28 08:26:09 PST 2008

>>
>> 2. Windows XP X64 Pro is limited to 255 characters for a filepath/filename ?
>>
>> 3. FileDisk Image is limited to 255 characters for a filepath/filename ?
>
> The inherent NTFS limit is 32767, but most windows programs have a limit
> of 260 characters. I don't know where that limit comes from, though.

The 260 file name limit is imposed by the Win32 API, as well as by most
applications including explorer. There is a macro in windef.h, #define
MAX_PATH 260 . This is used by a lot of software to size static file
name buffers. Applications that support longer file names have to use
the "\\?\" path prefix mechanism for squeezing long file names past the
Win32 API, or use native NT API's.

Joe Lowe
Pismo Technic.

--
Posted via a free Usenet account from http://www.teranews.com


Re: Filepath/Filename beyond 255 characters ? by Mark

Mark
Thu Feb 28 11:21:52 PST 2008

On Feb 28, 8:36=A0am, "Skybuck Flying" <s...@hotmail.com> wrote:
> HOLYFUCK.
>
> Now I finally understand what happened to some other files in that folder
> !!!! AND IT'S NASTY !!!
>
> When I copy a folder with files into such a long foldername: THE FILE NAME=
S
> GET TRASHED !!!!
>
> Like:
>
> Some_F~1.pas
>
> Then when I copy the folder back to some short folder, the filenames REMAI=
N
> FUCKED.
>
> THIS IS A VERY NASTY FILTHY MEAN ISSUE/PROBLEM/BUG/SHORTCOMING IN WINDOWS
> !!!
>
> This is probably related to the other posting I made about windows explore=
r
> hanging in such folders when copieing and renaming folders in such a long
> folder with fucked up file names. VERY NASTY.
>
> Bye,
> =A0 Skybuck.
>
> "Skybuck Flying" <s...@hotmail.com> wrote in message
>
> news:45daa$47c697ef$541983fa$24793@cache3.tilbu1.nb.home.nl...
>
>
>
> > HOLYSHIT.
>
> > It's much, much, much worse then my greatest fear.
>
> > It's a Windows XP X64 Pro LIMITATION ?! AAAAAAAAAAAAAAHHHHHHHHHHHHHH
> > NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO=
OOO=ADOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO=
OOOOO=ADOOOOOO
>
> > For example I create a folder called:
>
> > "
> > test if delphi can find this insanely long folder which should have so
> > many characters that it at least exceeds 255 characters hopefully my
> > fucking file disk image wont get corrupted by this fucking long folder
> > others I am screwed
> > "
>
> > Then when I try to create a sub folder in that long folder windows says:=

>
> > "Unable to create the folder 'New Folder'"
> > "The filename or extension IS TOO LONG"
>
> > WHAT THE FUCK ?!?!?!?!?!?!?!
>
> > Well at least it's not a file disk image limitation (???) (Though it doe=
s
> > have the same limitation)
>
> > (Because I tested this on a normal ntfs partition as well)
>
> > And at least no corruption so far occured.
>
> > Needless to say, THIS SUX.
>
> > THIS NEEDS TO BE FIXED.
>
> > I WANT LONG FILENAMES AND LONG FOLDERNAMES.
>
> > AHHHHH. ARGHHH >>>>>>(((((((
>
> > Maybe there is an option to enable longer filenames and foldernames ???
>
> > Or some other kind of solution ???
>
> > Bye,
> > =A0Skybuck.- Hide quoted text -
>
> - Show quoted text -

The file names aren't exactly 'trashed' they have instead been
replaced by their shortname versions. I agree however that 12 years
after introducing long file names with spaces and other odd characters
Microsoft's platform api and applications still do not fully support
long file names with spaces and other odd characters, and the platform
still cannot quite rid itself of the dos 8.3 filename format which is
more like 25 years old.