SevenZipSharp icon indicating copy to clipboard operation
SevenZipSharp copied to clipboard

Got an IOException after first uncompress

Open 404neko opened this issue 4 years ago • 0 comments

When I run such pseudocode, I got an IOException, it seems that resource not released after first uncompress.

            try
            {
                uncompress(archive_path, target);
            }
            catch (SevenZip.ExtractionFailedException e)
            {
                if (e.Message.Contains("password"))
                {
                    InputBox inputBox = new InputBox();
                    inputBox.ShowDialog();
                    String password = inputBox.password;
                    if (password.Length > 0)
                    {
                        uncompress(archive_path, target, password);
                    }
                }
            }

404neko avatar Dec 17 '21 04:12 404neko