Crop Assotiation section

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Crop Assotiation section

Post by *LonerD »

I redirect section [Associations] to separate file.
When I edit associations in TC Internal Associations editor - this file cropped to 66345 bytes. (for example - no such situation with redirected file with [Searches] section - it not cropped).
If I edit [Associations] manually - TC work fine with file more than 66345 bytes, but manually editing is uncomfortable.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

According to Microsoft, each section in an ini file is limited to 64 kBytes:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms725500%28v=vs.85%29.aspx
Author of Total Commander
https://www.ghisler.com
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Post by *LonerD »

ghisler(Author)
each section in an ini file is limited to 64 kBytes
On MS syte:
This string is limited to 65,535 bytes.
My [Searches] section in TC now above 70 kbytes and not cropped when I add new search templates in TC dialogues.

And [Associations] sections cropped not to 65535 bytes, but about 66300-66500 bytes.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Strange but I don't see information about section size limit in that MSDN article, but I found another section size limit here.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2MVV
The docs are inconsistent - the article I link to speaks about 65535 bytes, which is 64k-1, while yours speaks about 32 kBytes...
Author of Total Commander
https://www.ghisler.com
Post Reply