[Mono-bugs] [Bug 374516] Configuration fails to load a Rectangle definition from executable configuration xml file

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 14 07:16:28 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=374516

User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=374516#c6





--- Comment #6 from Andy Hume <andyhume32 at yahoo.co.uk>  2008-08-14 05:16:28 MDT ---
Created an attachment (id=233440)
 --> (https://bugzilla.novell.com/attachment.cgi?id=233440)
Repro

Well, a reporter of a similar bug was able to provide a simple single-file
repro application, see bug 414445.  Based on his code I've created the attached
repro.

It is a culture specific issue, note from the stack trace in the original
report that the code path is: TypeConverter.ConvertFromString ->
RectangleConverter.ConvertFrom -> Int32Converter.ConvertFromString.  And that
the Int32Converter fails when trying to convert "0,0,0,0".  So the
RectangleConverter hasn't split the input value into the four numbers.

In English and other cultures CultureInfo.TextInfo.ListSeparator is ",",
however in some other european cultures it is ";".  Hence the problem.  The
settings code should only call ConvertFromInvariantString and ConvertToString
and not the 'ambient culture' versions.

This fails as described in 1.9.  However in 2.0/SVN, when the value isn't
parseable one just receives a NRE!
[[
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at TabOrder2.Properties.Settings.get_MyRectangle1 () [0x00000] in
SettingsRectangle.cs:104
  at PropertiesSettingsRectangle.Main () [0x0001f] in SettingsRectangle.cs:16
]]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list