Menu

ERROR #17

Utsav
2011-06-30
2013-03-10
  • Utsav

    Utsav - 2011-06-30

    Hi
    I downloaded the setup file for 32 bit windows https://sourceforge.net/projects/sevenzip/files/7-Zip/9.20/7z920.exe.
    I issued the command 7z l d:\myImage.iso and it correctly displayed the contents.

    Then I downloaded the source from https://sourceforge.net/projects/sevenzip/files/7-Zip/9.20/7z920.tar.bz2
    and compiled the projects
    source\C\Util\7z and source\CPP\7zip\Archive\7z both of them compiled successfully resulting the 2 files
    7zDec.exe and 7z.dll respectively
    now again i issued the command 7zDec l d:\myImage.iso
    and it resulted in ERROR #17.
    Thanks.

     
  • TimaBvi

    TimaBvi - 2013-03-10

    Hi,
    I recently compiled 7zDec with MinGw and I got the same error with the following command:

    7zDec l C:\myzip.zip

    So I then used GDB (GNU Debugger) and found that SzArEx_Open2 returned SZ_ERROR_NO_ARCHIVE. SZ_ERROR_NO_ARCHIVE is defined as 17 by the way, which explains the number. Here is the code in SzArEx_Open2 that does this.

    if (!TestSignatureCandidate(header))
    return SZ_ERROR_NO_ARCHIVE;

    Please advise on how to fix this problem.

     
  • Igor Pavlov

    Igor Pavlov - 2013-03-10

    7zDec decodes only .7z archives.

     
  • TimaBvi

    TimaBvi - 2013-03-10

    thanks Igor. Just figured that out.
    I tried it with a 7z archive and it worked.

     

    Last edit: TimaBvi 2013-03-10

Log in to post a comment.