title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Is an error supposed to leave no output file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisjj
    dBpoweramp Guru

    • Nov 2008
    • 300

    Is an error supposed to leave no output file?

    I would have though so, but e.g.

    Error converting to Windows Media Audio 10, 'xxx.flac' to 'xxx.wma'
    md5 did not match decoded data, file is corrupt.

    leaves an output file, condition unknown.
  • Spoon
    Administrator
    • Apr 2002
    • 44574

    #2
    Re: Is an error supposed to leave no output file?

    There is no file? if not overwriting then even the corrupt file should be left after conversion.
    Spoon
    www.dbpoweramp.com

    Comment

    • chrisjj
      dBpoweramp Guru

      • Nov 2008
      • 300

      #3
      Re: Is an error supposed to leave no output file?

      Originally posted by Spoon
      There is no file?
      As I said: it "leaves an output file"

      Originally posted by Spoon
      if not overwriting then even the corrupt file should be left after conversion.
      Are you saying a corrupt OUTPUT file should be left after failed conversion?

      Comment

      • dbfan
        dBpoweramp Guru

        • Jan 2011
        • 937

        #4
        Re: Is an error supposed to leave no output file?

        Yes

        Comment

        • chrisjj
          dBpoweramp Guru

          • Nov 2008
          • 300

          #5
          Re: Is an error supposed to leave no output file?

          Originally posted by mrspoonsi
          Yes
          Thanks. Do you have a workaround? I cannot afford there to be corrupt files.

          Comment

          • Spoon
            Administrator
            • Apr 2002
            • 44574

            #6
            Re: Is an error supposed to leave no output file?

            See:

            Where is documetation of the coreconverter.exe return codes, please? None found at http://www.dbpoweramp.com/developer-cli-encoder.htm. Thanks.
            Spoon
            www.dbpoweramp.com

            Comment

            • chrisjj
              dBpoweramp Guru

              • Nov 2008
              • 300

              #7
              Re: Is an error supposed to leave no output file?

              Thanks, but no workaround seen there.

              Corrupt output files are a nightmare in well-managed projects. They wreck build management systems like MAKE and pollute data sets. Compliant command-line tools e.g. compilers leave either good output files or none.

              Please do consider remedying this. I suggest CoreConverter.exe simply ensures that in event of error, no output file is left. Even if there was one present previously. Also, from Microsoft Command Line Standard http://technet.microsoft.com/en-us/l.../ee156811.aspx

              Required:

              * Error messages (as well as VERBOSE and DEBUG messages) must be written to STDERR.

              * Commands must terminate with an exit code indicating success (0) or failure (non-zero).
              This would be a big improvement and make the program much more attractive to developers of production-grade integrations.

              Thanks.
              Last edited by chrisjj; June 25, 2011, 10:37 PM.

              Comment

              • chrisjj
                dBpoweramp Guru

                • Nov 2008
                • 300

                #8
                Re: Is an error supposed to leave no output file?

                Originally posted by chrisjj
                * Error messages (as well as VERBOSE and DEBUG messages) must be written to STDERR.
                Please ignore that - I see http://www.dbpoweramp.com/developer-cli-encoder.htm says error messaes already optionally go to STDERR.

                Comment

                • dbfan
                  dBpoweramp Guru

                  • Jan 2011
                  • 937

                  #9
                  Re: Is an error supposed to leave no output file?

                  The do, normally nothing would go to stderr

                  Comment

                  • chrisjj
                    dBpoweramp Guru

                    • Nov 2008
                    • 300

                    #10
                    Re: Is an error supposed to leave no output file?

                    Originally posted by mrspoonsi
                    The do, normally nothing would go to stderr
                    Could you clarify that?

                    Comment

                    • Spoon
                      Administrator
                      • Apr 2002
                      • 44574

                      #11
                      Re: Is an error supposed to leave no output file?

                      STDERR if supplied is the process of getting error messages out of the converter.
                      Spoon
                      www.dbpoweramp.com

                      Comment

                      • chrisjj
                        dBpoweramp Guru

                        • Nov 2008
                        • 300

                        #12
                        Re: Is an error supposed to leave no output file?

                        Originally posted by Spoon
                        STDERR if supplied is the process of getting error messages out of the converter.
                        What do you mean by "if"? STDERR is always supplied - by the OS, when the process is created.

                        Comment

                        • Spoon
                          Administrator
                          • Apr 2002
                          • 44574

                          #13
                          Re: Is an error supposed to leave no output file?

                          It is not always, a calling program can pass NULL handles.
                          Spoon
                          www.dbpoweramp.com

                          Comment

                          • chrisjj
                            dBpoweramp Guru

                            • Nov 2008
                            • 300

                            #14
                            Re: Is an error supposed to leave no output file?

                            Originally posted by Spoon
                            It is not always, a calling program can pass NULL handles.
                            Ah, I see. Thanks.

                            Please do have the return code indicate error! Until then, there is no way one can properly use the converter ins standard tools like MAKE. Thanks.

                            Comment

                            • Spoon
                              Administrator
                              • Apr 2002
                              • 44574

                              #15
                              Re: Is an error supposed to leave no output file?

                              Perhaps for the next version.
                              Spoon
                              www.dbpoweramp.com

                              Comment

                              Working...

                              ]]>