System.OutOfMemoryException error

  S Hanslope replied to Peter Bromberg at 15-Feb-08 04:19

Thank you for providing this article it was exactly what I was looking for. I tested it all on a development environment (.net v2, XP) and everything worked fine. I then tested it on a server environment, (,net v2, windows server 2003 enterprise) but it immediately failed with the following error:

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at SevenZip.Compression.LZ.BinTree.Create(UInt32 historySize, UInt32 keepAddBufferBefore, UInt32 matchMaxLen, UInt32 keepAddBufferAfter) at SevenZip.Compression.LZMA.Encoder.Create() at SevenZip.Compression.LZMA.Encoder.SetStreams(Stream inStream, Stream outStream, Int64 inSize, Int64 outSize) at SevenZip.Compression.LZMA.Encoder.Code(Stream inStream, Stream outStream, Int64 inSize, Int64 outSize, ICodeProgress progress) at SevenZip.Compression.LZMA.SevenZipHelper.Compress(Byte[] inputBytes) at CompressedCookies.CpCookiesLzma.Set(String cookieName, Object cookieValue, DateTime expirationDate)

The website hosted on this server continued to work correctly and all other aspx pages were still functioning correctly. Are you able to give any pointers as to what might have caused this?

 




Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Article Discussion: 7Zip (LZMA) In-Memory Compression with C# - Peter Bromberg  17-Jan-07 3:45:23 PM
      Including SevenZipHelper in my project - Nicolas Ronvel  27-Feb-07 3:38:05 AM
          All code on eggheadcafe.com is in the public domain - Peter Bromberg  27-Feb-07 6:52:20 AM
      Thanks - Nicolas Ronvel  27-Feb-07 7:09:25 AM
      System.OutOfMemoryException error - S Hanslope  15-Feb-08 4:19:06 AM
          Could be a bug in the Managed 7zip code. - Peter Bromberg  15-Feb-08 7:28:39 AM
              Re: Could be a bug in the Managed 7zip code. - S Hanslope  18-Feb-08 12:12:39 PM
View Posts