SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

FastZip.ExtractZip hangs and fills the hard disk to maximum

Last post 11-19-2013 6:03 AM by DavidPierson. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-12-2013 9:27 AM

    FastZip.ExtractZip hangs and fills the hard disk to maximum

     Hello,

    We are using SharpZipLib.dll (0.84.0.1) to Zipping and Unzipping the contents of our project.

    Recently we got hang issue while extracting zipped file using FastZip. Zipped file size is 4 MB, after 10 minutes also FastZip.ExtractZip was extracting the file and we have to kill the process via task manager.

    If you allow it to continue it fills the hard disk(nearly 10GB of data is created by extarcting 4MB file).

    Code for Zipping:

     

     

     

     

    FastZip fastZip = new FastZip();
    fastZip.CreateEmptyDirectories = true;
    fastZip.CreateZip(m_SelectedFile, m_TempProjectPath, true, string.Empty);

    Code for extracting:

    FastZip fastZip = new FastZip();
    fastZip.CreateEmptyDirectories = true;
    fastZip.ExtractZip(m_SelectedFile, m_TempProjectPath, string.Empty);

     

    I suspect that some issue occured while Zipping and while unzipping end of the file is not foun and extraction algorithm enters infinite loop.

    Any support appreciated.

    Regards,

    Vinay

     

     

     

     

     

  • 11-15-2013 7:57 AM In reply to

    Re: FastZip.ExtractZip hangs and fills the hard disk to maximum

    Hi,

    0.84 was released a very long time ago and is not supported any more.
    See https://github.com/icsharpcode/SharpZipLib/wiki/Release-History

    Please upgrade to 0.86.0

    Thanks you, David

  • 11-19-2013 4:40 AM In reply to

    Re: FastZip.ExtractZip hangs and fills the hard disk to maximum

     Hello David,

    Thanks for the reply.

    Please let us know, above said issue is fixed in this release(0.86.0) or not?

    Regards,

    Vinay

     

     

    Filed under:
  • 11-19-2013 6:01 AM In reply to

    Re: FastZip.ExtractZip hangs and fills the hard disk to maximum

    Hello,

    We have upgraded to 0.86.0 and call to ExtractZip still results in hang.

    We already(looks like) know that something has gone wrong while zipping and opening in Winzip shows error message.

    Error: Invalid compressed data to expand (inflate) the file

    It could be better, if an exception is thrown if the zipped file is invalid(Instead of hang).

    Regards,

    Vinay

     

  • 11-19-2013 6:03 AM In reply to

    Re: FastZip.ExtractZip hangs and fills the hard disk to maximum

    Hi,

    Try using the sample code from the wiki at https://github.com/icsharpcode/SharpZipLib/wiki/Zip-Samples

    Let us know what happens using ZipFile instead of Fastzip.

    Thanks, David

Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.