Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.InvalidOperationException in SevenZipSharp.dll #2

Open
sepehr1014 opened this issue Jul 7, 2015 · 1 comment
Open

System.InvalidOperationException in SevenZipSharp.dll #2

sepehr1014 opened this issue Jul 7, 2015 · 1 comment

Comments

@sepehr1014
Copy link

Hello dear @phillipp and thanks for this great project.
Trying the WPF sample, after extracting a file, an exception is thrown:
System.InvalidOperationException was unhandled by user code HResult=-2146233079 Message=SevenZipExtractor instance must not be disposed while making an asynchronous method call. Source=SevenZipSharp StackTrace: at SevenZip.SevenZipExtractor.Dispose() in c:\Users\Sepehr\Desktop\SevenZipSharp-master\SevenZip\SevenZipExtractor.cs:line 807 at SevenZipTestWPF.MainWindow.extr_ExtractionFinished(Object sender, EventArgs e) in c:\Users\Sepehr\Desktop\SevenZipSharp-master\SevenZipTestWPF\MainWindow.xaml.cs:line 78 at SevenZip.SevenZipBase.<OnEvent>b__0[T](EventHandler1 h, T ee) in c:\Users\Sepehr\Desktop\SevenZipSharp-master\SevenZip\Common.cs:line 141

@sepehr1014
Copy link
Author

We can remove the call to Dispose method after completion, but isn't it necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant