PDA

View Full Version : Version 4.06 fails in System.Number.StringToNumber


ppblais
02-17-2009, 11:21 PM
I am running PSP Video 9 on Vista, with the linguistic/international options set to use the decimal comma instead of the period (French/International). It seems the code does not expect numbers using commas as the decimal point. When starting PSP Video 9 version 4.06, it fails with the following for some people (this is not exactly what I am seeing; I have yet to find how to capture the full error for posting, so I found this one a French forum where a French user ran into this specific problem):

---------------------------
Could Not Start Videora (Error Code:000100)
---------------------------
An error occured while trying to load the converter.
You will not be able to use the converter until you fix the cause of this problem.
To copy the text of this message press CTRL+C

Possible Problem: There is a problem with your configuration.
Possible Solution: Manually delete the following two to four directories:
On XP/Vista: C:\Program Files\Red Kawa\Video Converter App
On XP/Vista: C:\Documents and Settings\Dom\Application Data\Red Kawa\
On Vista: C:\Users\[USERNAME]\AppData\Red Kawa\
On Vista: C:\Users\[USERNAME]\AppData\Local\VirtualStore\Program Files\Red Kawa\
Then re-install this converter.

Full Error Details:
System.FormatException: Input string was not in a correct format.

at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)

at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)

at Videora.55416ba4ab669d7e.e3a4c15b59239e44(Object e0292b9ed559da7d, EventArgs fbf34718e704c6bc)

at System.Windows.Forms.ComboBox.OnSelectedIndexChang ed(EventArgs e)

at System.Windows.Forms.ComboBox.set_SelectedIndex(In t32 value)

at Videora.55416ba4ab669d7e.6299812161edcce3(Object e0292b9ed559da7d, EventArgs fbf34718e704c6bc)

at System.Windows.Forms.ComboBox.OnSelectedIndexChang ed(EventArgs e)

at System.Windows.Forms.ComboBox.set_SelectedIndex(In t32 value)

at System.Windows.Forms.ComboBox.set_Text(String value)

at Videora.55416ba4ab669d7e.778c7c2d872919d5()

at Videora.55416ba4ab669d7e.1af69bea12fff387(String 63bfdef4a4d2fe93)

at Videora.f266856f631ec016.38dff8994d1437ac(String 63bfdef4a4d2fe93)

at Videora.f266856f631ec016..ctor(String[] args)
---------------------------
OK
---------------------------

ppblais
02-17-2009, 11:24 PM
I can work around the problem by changing my Regional and Linguistic options to English from French, whereby the decimal point become the period instead of the comma.

The code should not make regional assumptions and should parse textual numbers using the appropriate "locale".

As well note that the word "occured" should really be "occurred" in the error message.

Lastly, I have a screen capture of the error message I received if this is useful.