Coder Social home page Coder Social logo

Comments (5)

deimspb avatar deimspb commented on September 18, 2024 1

@squid-box Thanks! Now it work for me without any errors!

from sevenzipsharp.

squid-box avatar squid-box commented on September 18, 2024

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.

deimspb avatar deimspb commented on September 18, 2024

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.

squid-box avatar squid-box commented on September 18, 2024

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:

  1. 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).
  2. 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.

squid-box avatar squid-box commented on September 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.