How should I set the dictionary size in ISetProperties.SetProperties? So far I use as name 'd' and set the dictionary size as a value 15 = 32KB and this as UInt32. The function doesn't fail, but I get an RangeError(HRESULT = 72415980) on compress. I tried also to set the value as Bytes and KBytes, but everytime the compress fails. Without setting this property value the compress works fine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I double checked it and it was on my end to retrieve the error message from the error code. It failed with a RangeError.
To set the dictionary size works for BZip2 and LZMA, but I get an invalid argument error for PPMd.
I used the default settings to set the dictionary size of ([CompressionLevel=DictionarySize]1 = 20,3=22,5=24,7=26,9=28 ).
I get the same error when I try to set NumFastBytes (WordSize) for PPMd, for all other methods it works fine.
Last edit: Jan B 2024-08-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How should I set the dictionary size in ISetProperties.SetProperties? So far I use as name 'd' and set the dictionary size as a value 15 = 32KB and this as UInt32. The function doesn't fail, but I get an RangeError(HRESULT = 72415980) on compress. I tried also to set the value as Bytes and KBytes, but everytime the compress fails. Without setting this property value the compress works fine.
there is no
RangeError
in 7-ZIP.What library do you use?
I double checked it and it was on my end to retrieve the error message from the error code. It failed with a RangeError.
To set the dictionary size works for BZip2 and LZMA, but I get an invalid argument error for PPMd.
I used the default settings to set the dictionary size of ([CompressionLevel=DictionarySize]1 = 20,3=22,5=24,7=26,9=28 ).
I get the same error when I try to set NumFastBytes (WordSize) for PPMd, for all other methods it works fine.
Last edit: Jan B 2024-08-08
ppmd uses "mem" and "o" parameters. Look help file for -m switch.
Thanks for your help all is working fine now.