vdaron / MusicXml.Net

Quick C# parser for MusicXML
Other
58 stars 27 forks source link

"Input string was not in the correct format" #8

Closed sbrl closed 6 years ago

sbrl commented 6 years ago

Just tried this library out, but I can't seem to get it to work. Here's the stack trace:

System.FormatException: Input string was not in a correct format.
  at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x00057] in <62f5937022004555807e6c57c33f6684>:0
  at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00015] in <62f5937022004555807e6c57c33f6684>:0
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00008] in <62f5937022004555807e6c57c33f6684>:0
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <62f5937022004555807e6c57c33f6684>:0
  at MusicXml.MusicXmlParser.GetScore (System.String filename) [0x0012c] in <9030298a07b74fa6bde2fab1e9de96c9>:0
  at MusicBoxConverter.MainClass.Main (System.String[] args) [0x00001] in /tmp/MusicBoxConverter/MusicBoxConverter/Program.cs:13

Here's a link to the MusicXML file in question: https://transfer.sh/xSIP5/HappyBirthday.xml

vdaron commented 6 years ago

Hello !

The fix was already in the last modifications. I've just release version 2.0.1 with the fix included

V.

sbrl commented 6 years ago

Thanks 😺