Menu

How to set dictionary size in ISetProperties.SetProperties

Help
Jan B
2024-08-07
2024-08-08
  • Jan B

    Jan B - 2024-08-07

    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.

     
  • Igor Pavlov

    Igor Pavlov - 2024-08-07

    there is no RangeError in 7-ZIP.
    What library do you use?

     
  • Jan B

    Jan B - 2024-08-08

    I double checked it and it was on my end to retrieve the error message from the error code. It failed with a RangeError.

    1. 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 ).

    2. 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
  • Igor Pavlov

    Igor Pavlov - 2024-08-08

    ppmd uses "mem" and "o" parameters. Look help file for -m switch.

     
  • Jan B

    Jan B - 2024-08-08

    Thanks for your help all is working fine now.

     

Log in to post a comment.