1
Vote

OutOfMemory Exception when compressing blob data

description

Hi,
 
first of all thanks for this project.
 
I get exception when trying to compress a blob data (byte array). This error does not happen always but sometimes for some blob data. The data i try to compress is not bigger than 200k bytes (which is actually XML content, not binary). On my developer machine it works fine but on a simple machine (my laptop) it fails and throws this exception.
 
I hope it will be fixed very soon.
 
Thanks,
 
Mack

file attachments

comments

mackscynox wrote Mar 1, 2011 at 9:15 AM

Hi again,

With some debugging session i learnt that LZMADictionarySize defaults to 4million. Which means application will try to allocate 4million * UInt32 size bytes in memory for LZMA dictionary. Is it ok if i reduce it to a very low value like 4k/8k? Will it fail compression?

Thanks,

Mack

wrote Feb 22, 2013 at 1:16 AM