Comments (5)
@squid-box Thanks! Now it work for me without any errors!
from sevenzipsharp.
0x80070057 means Invalid Arguments, I'm adding that to SevenZipSharp so it's more clear.
It look like you're trying to pass arguments for the -m
parameter as parameters for 7zip, which isn't going to work.
I've never needed to use custom parameters, and from the 10 minutes I've spent reading up on them in the 7z documentation I can't provide you with the info you need. You'll need to figure that part out, but the error message you're getting is correct - there is no parameter for 7z that is mem
.
from sevenzipsharp.
Hi! this custom parameters not for 7zip format. The are for Zip format.
And 7zip dll work with it.
I can create archive like this:
7z.exe a -tzip inFile outFile -mmt -mx9 -m0=PPMd:mem=128M:o=12
without any issues.
some aaditional info about switches https://sevenzip.osdn.jp/chm/cmdline/switches/method.htm
from sevenzipsharp.
Sorry, you are correct - I misunderstood how this works.
There is indeed something odd going on, a few of the parameters can be set this way, eg. in the CompressWithCustomParameters test. With your parameters, there's two errors:
o
gives an "Value does not fall within the expected range." message, for values that should be valid ([2-16] are specified to be valid in documentation).mem
gives the "0x80070057 / E_INVALIDARG" using either of the suggested formats (eg.128b
,128k
,128m
,27
).
Both of these responses come from calling the SetProperties COM call to 7zip itself, so I can't easily determine where the problem lies - a likely guess is that SevenZipSharp isn't properly formatting the property values it's sending, but it will take me quite a while to work out what's going wrong.
I don't have much time to spend on this right now, so don't hold your breath on getting a quick fix for this.
from sevenzipsharp.
@deimspb : I've now released 1.2.258 with a fix for this, please try it when you have time and let me know if it works for you.
from sevenzipsharp.
Related Issues (20)
- SevenZipSharp library not working on Xamarin forms
- Extract NSIS no output using SevenShipSharp while 7zip GUI has output
- Unable open archive file for spanned zip file
- Change license to MIT
- Stuck at a certain percent while extracting encrypted 7z file
- Windows Virus Scanner - Trojan:Win32/Wacatac.B!m in Squid-Box.SevenZipSharp Version=1.5.1.15 HOT 3
- version 1.6.0.22 is unusable for extraction HOT 2
- SevenZipExtractor.ExtractFileAsync(int, Stream) fails when created with leaveOpen == false
- Copyright HOT 2
- Execution has failed due to an internal SevenZipSharp issue (0x800700ce / -2147024690). HOT 1
- VHD support HOT 1
- Archive extraction should be cancelable
- The library does not seem to support AOT compilation?
- Feature Request: Support additional compression algorithms (7zip-zstd)
- Trying to add files to an existing ZIP archive creates a NEW archive HOT 1
- Exception when calling CompressDirectory with searchPattern that returns empty file collection
- Getting Corrupted file exception for proper archives HOT 1
- How to append files to a splitted archive?
- Error during extracting the file that I just compressed HOT 5
- Publishing a new release HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sevenzipsharp.