https://bugzilla.novell.com/show_bug.cgi?id=398274
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=398274#c1 --- Comment #1 from Andy Hume <[EMAIL PROTECTED]> 2008-06-07 06:16:09 MDT --- This second issue was reported by a user testing a app created in VisualStudio. See the thread around http://lists.ximian.com/pipermail/mono-list/2008-June/038767.html This happens when the current culture of VS is one that uses a comma as the decimal point character. A workaround is to use only integer values. This XML format is also used when the form has Localized=true. The exception that occurs on running such an app is included below for reference. [[ Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Array index is out of range. at System.Windows.Forms.Layout.TableLayoutSettingsTypeConverter.ParseRowStyle (System.Xml.XmlDocument xmldoc, System.Windows.Forms.TableLayoutSettings settings) [0x00099] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\Managed.Windows.Forms\System.Windows.Forms.Layout\TableLayoutSettingsTypeConverter.cs:184 at System.Windows.Forms.Layout.TableLayoutSettingsTypeConverter.ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object value) [0x00043] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\Managed.Windows.Forms\System.Windows.Forms.Layout\TableLayoutSettingsTypeConverter.cs:125 at System.ComponentModel.TypeConverter.ConvertFromString (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.String text) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System\System.ComponentModel\TypeConverter.cs:104 at System.ComponentModel.TypeConverter.ConvertFromInvariantString (ITypeDescriptorContext context, System.String text) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System\System.ComponentModel\TypeConverter.cs:89 at System.ComponentModel.TypeConverter.ConvertFromInvariantString (System.String text) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System\System.ComponentModel\TypeConverter.cs:84 at System.Windows.Forms.TableLayoutSettings..ctor (System.Runtime.Serialization.SerializationInfo serializationInfo, StreamingContext context) [0x0002a] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TableLayoutSettings.cs:74 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[]) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0003f] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Reflection\MonoMethod.cs:404 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00064] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Reflection\MonoMethod.cs:414 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Reflection\MethodBase.cs:90 at System.Runtime.Serialization.ObjectRecord.LoadData (System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector selector, StreamingContext context) [0x000d7] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization\ObjectManager.cs:578 at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00069] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization\ObjectManager.cs:84 at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject (System.IO.BinaryReader reader) [0x0000f] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\ObjectReader.cs:115 at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph (System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00041] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\ObjectReader.cs:105 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00076] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\BinaryFormatter.cs:177 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\BinaryFormatter.cs:134 at System.Resources.ResourceReader.ReadNonPredefinedValue (System.Type exp_type) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Resources\ResourceReader.cs:351 at System.Resources.ResourceReader.ReadValueVer2 (Int32 type_index) [0x001f9] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Resources\ResourceReader.cs:310 at System.Resources.ResourceReader.ResourceValue (Int32 index) [0x00092] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Resources\ResourceReader.cs:394 at System.Resources.ResourceReader+ResourceEnumerator.get_Value () [0x00032] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Resources\ResourceReader.cs:603 at System.Resources.ResourceSet.ReadResources () [0x00043] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Resources\ResourceSet.cs:208 at System.Resources.ResourceSet.GetEnumerator () [0x0000b] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Resources\ResourceSet.cs:131 at System.ComponentModel.ComponentResourceManager.BuildResources (System.Globalization.CultureInfo culture, System.Collections.Hashtable resources) [0x00029] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System\System.ComponentModel\ComponentResourceManager.cs:104 at System.ComponentModel.ComponentResourceManager.BuildResources (System.Globalization.CultureInfo culture, System.Collections.Hashtable resources) [0x0000c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System\System.ComponentModel\ComponentResourceManager.cs:99 at System.ComponentModel.ComponentResourceManager.BuildResources (System.Globalization.CultureInfo culture, System.Collections.Hashtable resources) [0x0000c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System\System.ComponentModel\ComponentResourceManager.cs:99 at System.ComponentModel.ComponentResourceManager.ApplyResources (System.Object value, System.String objectName, System.Globalization.CultureInfo culture) [0x0004a] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System\System.ComponentModel\ComponentResourceManager.cs:68 at System.ComponentModel.ComponentResourceManager.ApplyResources (System.Object value, System.String objectName) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System\System.ComponentModel\ComponentResourceManager.cs:54 at ToWO.Edit.Spell.InitializeComponent () [0x00000] at ToWO.Edit.Spell..ctor () [0x00000] at (wrapper remoting-invoke-with-check) ToWO.Edit.Spell:.ctor () at SpellEditorDemo.frmMain.InitializeComponent () [0x00000] at SpellEditorDemo.frmMain..ctor () [0x00000] at (wrapper remoting-invoke-with-check) SpellEditorDemo.frmMain:.ctor () at SpellEditorDemo.Program.Main () [0x00000] ]] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
