Closed marfixdev closed 1 year ago
Hi!
The exception seems to be thrown while opening the file in the BitArchiveReader
constructor.
Unfortunately, I cannot understand the second part of the error message (Yanl?? i?lev
); this is probably the localized message corresponding to the specific error code returned by the internal code of the library or by 7-zip (and encoded using UTF-8, hence the ?
characters, probably your console doesn't use the UTF-8 encoding).
You can check the actual error code via BitException::code()
or BitException::hresultCode()
to find the cause of the exception.
Anyway, from my experience, I can think of some possible issues that can cause exceptions while reading .rar
files:
BitFormat::Rar
) and Rar5 (BitFormat::Rar5
), both using the same .rar
file extension.
BitFormat
you pass to BitArchiveReader
(or simply test your code using BitFormat::Rar5
: if it works, it means that your archive uses the Rar5 format).7z.dll
should support them, but since you downloaded it from Google, maybe it wasn't a "standard" 7z.dll
.After changing rar to rar5 it worked succesfully ! Is it possible to run it without 7z.dll? I would like to, thank you soo much for making this library.It's really usefull.
You're welcome! It's great to hear that it worked for you! :) As for running it without the 7z.dll, unfortunately, it's not possible right now. I will probably add it in the future, but not in the short term; for now, I'm more concentrated on improving the API and adding other features.
I'm getting this error when trying to Iterate through items inside .rar file.
Console output : https://prnt.sc/QMrM7RfA3EtO
Here is my code : https://prnt.sc/AqWIKZuip64k
Note:Downloaded 7z.dll from google