Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5076

Problem with Format on WriteLine

    XMLWordPrintableJSON

Details

    Description

      I am receiving this error:

      Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
      at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
      at System.String.Format(IFormatProvider provider, String format, Object[] args)
      at System.String.Format(String format, Object arg0, Object arg1, Object arg2)
      at WPCordovaClassLib.Cordova.NativeExecution.ProcessCommand(CordovaCommandCall commandCallParams)
      at WPCordovaClassLib.CordovaView.CordovaBrowser_ScriptNotify(Object sender, NotifyEventArgs e)
      at Microsoft.Phone.Controls.WebBrowser.FireScriptNotifyEvent(String value)
      at Microsoft.Phone.Controls.WebBrowserInterop.ReversePInvokeThunk.OnScriptNotify(Int32 webBrowserControlId, String value)

      My guess is that the problem is in this line of code:

      Debug.WriteLine(String.Format("ERROR: Unable to execute command :: {0}:{1}:{3} ", commandCallParams.Service, commandCallParams.Action, ex.Message));
      

      It seems that the index numbes are wrong.

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            jonathannaguin Jonathan Naguin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: