Tiny problem with "Select All" and MANY files in d

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
gigaman
Member
Member
Posts: 134
Joined: 2003-02-14, 11:28 UTC

Tiny problem with "Select All" and MANY files in d

Post by *gigaman »

Yesterday, I came accross another small glitch :)

The "Select All" operation (Ctrl Gray+) does not work when there are more than 65536 files in the directory; in that case, the operation doesn't select all the files, but only the first (N-65536) ones.

OK, I know it's such an extreme condition that it's hard to call it a bug. I just thought Mr. Ghisler might like to know :D
(And no, I don't have such directories on my disk under usual conditions).
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Well, under non-NT systems this is the limit of the listbox, so you actually shouldn't be able to see more than 65535 files in a window, let alone select more...

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
gigaman
Member
Member
Posts: 134
Joined: 2003-02-14, 11:28 UTC

Post by *gigaman »

Sure, I wouldn't try such things on Win9x :D
This was a WinXP system - and all the files were displayed. The usual selection methods (using Grey+ alone, e.g. with "*.*" selection) worked OK, all the files were selected - only Ctrl Grey+ suffers from this problem.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Ctrl+A ???

Post by *Clo »

2gigaman
:) Hello !
- What does occur using the standard Win shortcut Ctrl+A ? It works in TC for a while yet…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2gigaman
I tested cm_SelectAll (Ctrl Grey+, Ctrl+A) behavior in a directory with more than 70000 files. All files were selected properly. I tested on Windows XP SP1+SP2.
gigaman
Member
Member
Posts: 134
Joined: 2003-02-14, 11:28 UTC

Post by *gigaman »

Both Ctrl Grey+ and Ctrl-A behave the same way - only the first N-65536 are selected. The same holds for cm_SelectAll command if I place it to the button bar.
The system is WinXP SP1.

As an example, I just tried with directory containing 70000 files, named xx.000001 - xx.070000
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

What FS?

Post by *Clo »

2gigaman
:) Hello !
The system is WinXP SP1.
• Well, but you didn't say what is the file-system…
• Following the replies of Hacker and Lefteous (Hello!) above, it seems that you are running a FAT32 system !
- Win-Xp works too under FAT 32 ! Please, verify this :
In TC, right-click on the drive-button >>> Properties >>> File system on the first sheet by default…

:mrgreen:  Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
gigaman
Member
Member
Posts: 134
Joined: 2003-02-14, 11:28 UTC

Post by *gigaman »

Well, I don't see any connection with Hacker's post (and I also don't think this behavior of the user interface could be connected to the file system) - in any case, it is a NTFS partition.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This problem will be fixed in the next release of TC. It's a problem with the command lb_selitemrange, which only accepts 16-bit numbers (select from and select to are stored within the same 32-bit number as low and high word).
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
In my test all items were selected with cm_SelectAll. Could there be any reason why it worked on my system and refused to work on others?
Is there a reason why Gray+ and *.* worked for gigaman?

How did you solve the problem? Are you using another message or are you using this message multiple times. I guess you are using LB_SELITEMRANGEEX now?
Post Reply