Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.85 KB  |  hits: 39  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Ionic zip throws out of memory exception
  2. Exception details:
  3. ******************
  4. [6/11/2012 01:21:38:812]
  5.  System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
  6.    at Ionic.Zip.ZipEntry._WriteEntryData(Stream s)
  7.    at Ionic.Zip.ZipEntry.Write(Stream s)
  8.    at Ionic.Zip.ZipFile.Save()
  9.    at Ionic.Zip.ZipFile.Save(String fileName)
  10.    at MyCode.SaveZipFile()
  11.  
  12. [6/11/2012 01:21:38:828]
  13.  
  14. System.NullReferenceException: Object reference not set to an instance of an object.
  15.    at Ionic.Zlib.ParallelDeflateOutputStream._Flush(Boolean lastInput)
  16.    at Ionic.Zlib.ParallelDeflateOutputStream.Close()
  17.    at Ionic.Zlib.ParallelDeflateOutputStream.Dispose()
  18.    at Ionic.Zip.ZipFile.Dispose(Boolean disposeManagedResources)
  19.    at Ionic.Zip.ZipFile.Dispose()
  20.    at Mycode.SaveZipFile()
  21.    at Mycode.SaveLogs()
  22.        
  23. zip.ParallelDeflateThreshold = -1;