Serious problem with ini file

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Sam York
Junior Member
Junior Member
Posts: 61
Joined: 2003-08-14, 20:42 UTC

Serious problem with ini file

Post by *Sam York »

It seems that the size limit of the Tc's .ini configuation file is 64k
Whatever you add further to this size limit will be lost!(this bug was reproduced by adding a lot of "search descriptions" - alt+f7 last tab - but I guess it doesn't matter how the 64k limit was exceeded since probably the limit was not only for the section [searches] in the ini file)

I guess Mr. Ghisler never thought in early stages of development of WinCom that one day the ini size limit could become greater than 64k :wink:
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

what is your operating system?
Sam York
Junior Member
Junior Member
Posts: 61
Joined: 2003-08-14, 20:42 UTC

is it OS dependent?

Post by *Sam York »

98se & xp pro
Last edited by Sam York on 2003-08-14, 21:34 UTC, edited 1 time in total.
Sam York
Junior Member
Junior Member
Posts: 61
Joined: 2003-08-14, 20:42 UTC

Post by *Sam York »

In the ini file that I encounter this situation the biggest section was [searches] and therefore it could be possible that the limitation should be applied here ... I didn't try to experiment further ...
Last edited by Sam York on 2003-08-14, 21:58 UTC, edited 1 time in total.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Re: is it OS dependent?

Post by *Lefteous »

Sam York wrote:98se & xp pro
yes there are size limitations for some INI functions provided by the operating system. Windows Me/98/95 implementations are more limited than on NT-based systems.
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

I heard that Christian wrote his own ini routines to get over this issue, guess not?
Of all the planets I've been to, this one is my favorite.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, for compatibility reasons I'm using the operating system ini functions. These are indeed limited to 64k.
Author of Total Commander
https://www.ghisler.com
Sam York
Junior Member
Junior Member
Posts: 61
Joined: 2003-08-14, 20:42 UTC

Post by *Sam York »

Maybe using multiple 64k ini files will be the solution?
User avatar
AlleyKat
Senior Member
Senior Member
Posts: 203
Joined: 2003-06-15, 10:51 UTC
Location: for personal info, see wiki
Contact:

Post by *AlleyKat »

I'd suggest limiting Searches-section to 32K instead - 64K inifiles sound rather messy imho. And multiple... nah. That's overdoing it.

I've seen the discussion about splitting out the different mainparts somewhere else on this board - that may be a solution. Maybe just a separate Searches-ini-file could do it. But I do think this is a little far-fetched, it should be possible to keep the inifile under 64K no matter what.

I'd go for the 'truncated searches'-solution for sure.
Translate your favorite Mozilla Extension ~ Your Language Is Important Too.
#tcmd on irc.freenode.net - the place to idle
Sam York
Junior Member
Junior Member
Posts: 61
Joined: 2003-08-14, 20:42 UTC

Post by *Sam York »

AlleyKat wrote:I'd suggest limiting Searches
AlleyKat wrote:But I do think this is a little far-fetched, it should be possible to keep the inifile under 64K no matter what.
From Mr. Ghisler's answer it seems that the ini file is limited to 64k not one section or the other ... My ini file is already 47k without any "searches" and with the new TC 6.0 I don't think that the inevitable will be postponed.
User avatar
AlleyKat
Senior Member
Senior Member
Posts: 203
Joined: 2003-06-15, 10:51 UTC
Location: for personal info, see wiki
Contact:

Post by *AlleyKat »

Hmm ok... that's big... I thought my TC was pretty bloated, and including a few searches it currently runs to ~7½k. You must have some serious stuff in there.
Translate your favorite Mozilla Extension ~ Your Language Is Important Too.
#tcmd on irc.freenode.net - the place to idle
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

By the way, you can now easily get rid off unused data in your ini file with this tool: http://www.ghisler.ch/board/viewtopic.php?t=4582

That will help reducing the size to an error-free zone! ;)

Using also the export/import feature in a productive way you can theoretically achieve the multiple-ini-files functionality suggested here. Slightly less than automatic but yet feasible! ;)
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Post Reply