This project is read-only.
1
Vote

OutOfMemeory exception

description

Hi

I am using the SevenZipCompressor to compress a directory to zip file. The directory is huge around 1.5GB. When trying to compress this directory I occasionally get OutOfMemory

I use the following code to create the zip file

SevenZip.SevenZipCompressor.SetLibraryPath( dllPath );

// Create an instance of SevenZipCompressor
SevenZip.SevenZipCompressor compressor = new SevenZip.SevenZipCompressor();
compressor.ArchiveFormat = SevenZip.OutArchiveFormat.Zip;
compressor.CompressionLevel = SevenZip.CompressionLevel.Fast;
compressor.CompressionMethod = SevenZip.CompressionMethod.Default;
compressor.VolumeSize = 0;

compressor.CompressDirectory( sourceDirectory, zipFileName );

How can avoid this OutOfMemory exception
Is there any way I can specify the buffer size that is used internally by the compressor

comments