title
Products            Buy            Support Forum            Professional            About            Codec Central
 

R16.1 Feature request: coreconverter.exe return code for error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisjj
    dBpoweramp Enthusiast
    • Nov 2008
    • 296

    R16.1 Feature request: coreconverter.exe return code for error

    Please make coreconverter.exe return code be non=zero in event of error.

    Currently the lack of a return code indicating error makes CoreConverter.exe not properly usable on many environment. It is standard for command-line programs to indicate errors in the return code. Since it doesn't to that, CoreConverter.exe doesn't fit properly in everything from MAKE to PowerShell.

    Workaround: code a wrapper that

    1 creates a unique temporary filename
    2 passes it by -errorfile=
    3 returns non-zero if thw temp file is non-empty
    4 deletes the temp file
    5 risks fail if anything goes wrong with the tempfile e.g. out of disc space.
  • Spoon
    Administrator
    • Apr 2002
    • 43888

    #2
    Re: R16.1 Feature request: coreconverter.exe return code for error

    I have just tested R16 and it does return the correct error code, 0 if no error, 1 for an error. This code was used to test:

    DWORD exit_code = 0;
    GetExitCodeProcess(proc.hProcess, &exit_code);
    Spoon
    www.dbpoweramp.com

    Comment

    Working...

    ]]>