This is not really a bug -- it's more a limitation:
TC 10.50x32
When defining custom columns with a lot of fields, the ContentsX line in the ini file section [CustomFields] can get quite long.
After 1020 (1024?) characters, the line is simply truncated, resulting in incomplete information and broken custom columns.
@ghisler
Can you please increase the supported number of chars for ContentsX (or at least issue a warning in case no more fields can be added)?
Length of CustomFields Contents line in ini
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Length of CustomFields Contents line in ini
Sorry, currently it's not planned to increase this field size. Each section in an ini file is limited to 65535 characters, so making a single value too large would significantly reduce the total number of views.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Length of CustomFields Contents line in ini
2ghisler(Author)
I've run into this issue a couple of weeks ago with one of my WFX plugins. I didn't report it because I didn't have the time for a proper bug report. It took me a while to figure out why my custom columns view was not working the way it was supposed to work.
Anyway, the reason you describe doesn't apply to custom columns of WFX plugins because they use their own section in wincmd.ini. And I agree with funkymonk that there needs to be some kind of warning/error message when reaching the limit. Silently truncating input is just bad design!
Regards
Dalai
I've run into this issue a couple of weeks ago with one of my WFX plugins. I didn't report it because I didn't have the time for a proper bug report. It took me a while to figure out why my custom columns view was not working the way it was supposed to work.
Anyway, the reason you describe doesn't apply to custom columns of WFX plugins because they use their own section in wincmd.ini. And I agree with funkymonk that there needs to be some kind of warning/error message when reaching the limit. Silently truncating input is just bad design!
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Length of CustomFields Contents line in ini
Very old, but related topic: viewtopic.php?p=251050#p251050
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Length of CustomFields Contents line in ini
I want to to bring this one up again for TC11.00.
Apparently the max size of ini sections was increased lately -- maybe this helps.
It would still be great if more than 1024 chars would be allowed for the Contents line in [CustomFields].
I use custom views quite often and find it very limiting for some views.
If this is still not possible, there should at least be a warning in case of too long lines, just like for this fix:
Apparently the max size of ini sections was increased lately -- maybe this helps.
It would still be great if more than 1024 chars would be allowed for the Contents line in [CustomFields].
I use custom views quite often and find it very limiting for some views.
If this is still not possible, there should at least be a warning in case of too long lines, just like for this fix:
Code: Select all
14.07.23 Fixed: Directory hotlist, add entry in submenu or delete entry: Write entire section [dirmenu] to store it in sorted order and much faster, warn if section too big (32/64)
Re: Length of CustomFields Contents line in ini
Bump for 11.50
It would still be great if more (than 1024) chars would be allowed for the Contents line in [CustomFields].
The current limit is very problematic for some of my custom views.
(And: if the max line length is exceeded, the line is simply truncated without any warning!)
It would still be great if more (than 1024) chars would be allowed for the Contents line in [CustomFields].
The current limit is very problematic for some of my custom views.
(And: if the max line length is exceeded, the line is simply truncated without any warning!)