You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/11/04 21:44:18 UTC

[jira] [Commented] (CB-5076) Problem with Format on WriteLine

    [ https://issues.apache.org/jira/browse/CB-5076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813244#comment-13813244 ] 

ASF subversion and git services commented on CB-5076:
-----------------------------------------------------

Commit 254883a62079039e88ef549346a1a0ba00159779 in branch refs/heads/master from [~purplecabbage]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git;h=254883a ]

CB-5076 String.Format issue causing exception in exception handler


> Problem with Format on WriteLine
> --------------------------------
>
>                 Key: CB-5076
>                 URL: https://issues.apache.org/jira/browse/CB-5076
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP7, WP8
>    Affects Versions: 3.0.0
>         Environment: Any
>            Reporter: Jonathan Naguin
>            Assignee: Jesse MacFadyen
>              Labels: format, index, string
>             Fix For: 3.2.0
>
>
> I am receiving this error:
> {quote}
> 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)
> {quote}
> My guess is that the problem is in this line of code:
> {code}
> Debug.WriteLine(String.Format("ERROR: Unable to execute command :: {0}:{1}:{3} ", commandCallParams.Service, commandCallParams.Action, ex.Message));
> {code}
> It seems that the index numbes are wrong.



--
This message was sent by Atlassian JIRA
(v6.1#6144)