Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Zip Writer not disposing inner stream

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20351 |

    When I call dispose on the ZipWriter it’s not disposing the inner stream as I expected. Is your writer not disposing the inner stream on purpose, or is it a defect?  I will work around it, but just wanted to know for future reference.

    Imported from legacy forums. Posted by Adam (had 1701 views)

    Diane [Xceed]
    Moderator
    Post count: 1353

    Hi Adam,

    It does not dispose of the supplied inner stream on purpose. It was a design decision. ZipReader works the same way.

    Since ZipWriter is not the one who is creating the stream, we felt it would be bad design to dispose of it unilaterally. It is your responsibility to dispose of the stream supplied to ZipWriter when you are done with it.

    Imported from legacy forums. Posted by Diane [Xceed] (had 1331 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.