約 16 MB 未満のメモリストリームは適切に機能します。しかし、サイズが約 16MB を超えるメモリ ストリームを圧縮すると、エラー (HResult = -2146233088) が発生します。どうすれば動作させることができますか?
SevenZipSharp.dll バージョン 0.64.3890.29348 を使用しています
SevenZip.SevenZipCompressor compressor = new SevenZip.SevenZipCompressor();
compressor.CompressionMethod = SevenZip.CompressionMethod.Lzma2;
compressor.CompressionLevel = SevenZip.CompressionLevel.Ultra;
compressor.EncryptHeaders = false;
using (Stream output = File.Open(sFileName, FileMode.Create))
{
ms.Position = 0;
compressor.CompressStreamDictionary(new Dictionary<string, Stream> { { zipFileName, ms } }, output, "");
}
SevenZipSharp のバグにより、実行に失敗しました。それについてhttp://sevenzipsharp.codeplex.com/WorkItem/List.aspxに報告し、リリース番号を投稿し、アーカイブを添付してください。
エラースタックトレース:
SevenZip.SevenZipBase.ThrowException(CallbackBase handler, Exception[] e) SevenZip.SevenZipBase.CheckedExecute(Int32 hresult, String message, CallbackBase handler) bei SevenZip.SevenZipCompressor.CompressStreamDictionary(Dictionary`2 streamDictionary, Stream archiveStream, String password) bei frmConfigSystem.bwExport_DoWork(オブジェクト送信者, DoWorkEventArgs e)