ThumbnailPrealloc=200000000 does not prealloc 200MB/190MiB
Moderators: Hacker, petermad, Stefan2, white
ThumbnailPrealloc=200000000 does not prealloc 200MB/190MiB
ThumbnailPrealloc=200000000 does not prealloc 200MB/190MiB. But there is a maximum of about 1,500,000 bytes. This should be revised nowadays.
Joube
Joube
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: ThumbnailPrealloc=200000000 does not prealloc 200MB/190MiB
I don't limit the size in any way. Here is what I call:
Code: Select all
res:=pRootStg.CreateStream('prealloc',mode,0,0,pFileStream);
if succeeded(res) then begin
pFileStream.SetSize(preallocSize);
pFileStream.Release;
end;
pRootStg.DestroyElement('prealloc');
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: ThumbnailPrealloc=200000000 does not prealloc 200MB/190MiB
Preallocating the file doesn't prevent it to grow above that size.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: ThumbnailPrealloc=200000000 does not prealloc 200MB/190MiB
Moderator message
Moved to "will not be changed"
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: ThumbnailPrealloc=200000000 does not prealloc 200MB/190MiB
2ghisler(author)
That's not ok, I've been away from home for 2 days and can't take care of it, it's already been postponed in "will not be changed". You may not change this, but it's still a bug. And it stays buggy unless you change it.
Unfortunately, as I said, I was only able to test it now with a fresh.ini. The maximum size when creating is 1.5 MB. This is annoying and slows everything down a lot. My previous database was 3 GB and I had to delete it because I had changed the size of the thumbs (from 96x96 to 168x168). The size of 1.5MB is reached almost immediately and then the enlargement starts, which is annoyingly slow.
So please, test it yourself and annoy yourself with this error.
So move this thread back to the bug forum.
joube
I'll happily grant you one thing, everyone can survive it even if you don't change it. but I will be annoyed about Tc11 in the near future (until all pictures are saved as thumbs again (like I said 3GB)).
Incidentally, what Horst.Epp wrote has nothing to do with the matter and is completely off topic.
I suspect it might be a limitation of the database routines, please test it out.
J.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: ThumbnailPrealloc=200000000 does not prealloc 200MB/190MiB
As I wrote above, I call the function with the user-defined size, but Windows seems to ignore it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: ThumbnailPrealloc=200000000 does not prealloc 200MB/190MiB
OK, I can deal with. Thanks for looking in the sources and checking it.