Workaround for NullReferenceException when extracting multiple 7zip archives simultaneously on PS 7.4.0#89
Conversation
…lReferenceException on PowerShell 7.4
…e cleanup and refactoring
|
Thanks for the workaround @kborowinski . The actual issue is caused by the fact that for every progress change a new I have published 2.4.1-beta0008 including your fix. |
|
@thoemmi During the test I've found that higher the number of What keeps me wondering is that NREs are not happening on PS 5.1 at all. Also the NREs are occurring mostly on I do believe that this is a race-condition in PowerShell as similar issue is open already (PowerShell/PowerShell#17497). There was a PR for it, implementing extra locks, but it's closed now (PowerShell/PowerShell#17498). |
|
I remember 12 years ago when I started 7Zip4Powershell, the main challenge was that 7zip raised the |
@thoemmi This is workaround for issue #88. I'll report this issue on PowerShell repository but in the meantime I have implemented this fix to make 7Zip4PowerShell behave reliably on PS 7.4.0. I have also made small
Filtercode refactoring for simplification. And I have also enclosed all progress pane paths in double quotes. When you have a time, please make this a beta release for testing (I did test it myself but better be safe than sorry)