[Mono-bugs] [Bug 436199] New: Localizable form fails with nullreference exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 16 12:54:26 EDT 2008


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


           Summary: Localizable form fails with nullreference exception
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i386
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: christoffer at curo.dk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Using mono svn from today, oct 16 2008.

Built a VB.NET project with a form that was not localizable. Works fine in
Mono.

Setting localizable makes it fail with:

Unhandled Exception: System.InvalidOperationException: An error occured while
creating the form. See Exception.InnerException for details. The error is:
Exception has been thrown by the target of an invocation. --->
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.NullReferenceException: Object reference
not set to an instance of an object
  at System.Windows.Forms.TableLayoutSettings.set_ColumnCount (Int32 value)
[0x00020] in
/home/cs/downloads/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TableLayoutSettings.cs:100 
  at System.Windows.Forms.TableLayoutPanel.set_LayoutSettings
(System.Windows.Forms.TableLayoutSettings value) [0x0000b] in
/home/cs/downloads/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TableLayoutPanel.cs:134 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
/home/cs/downloads/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:159 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00071] in
/home/cs/downloads/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:169 
  at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object
value, BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] index, System.Globalization.CultureInfo culture) [0x00064] in
/home/cs/downloads/mono/mcs/class/corlib/System.Reflection/MonoProperty.cs:254 
  at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object
value, System.Object[] index) [0x00000] in
/home/cs/downloads/mono/mcs/class/corlib/System.Reflection/PropertyInfo.cs:102 
  at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName,
System.Globalization.CultureInfo culture) [0x0012a] in
/home/cs/downloads/mono/mcs/class/System/System.ComponentModel/ComponentResourceManager.cs:91 
  at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName) [0x00000] in
/home/cs/downloads/mono/mcs/class/System/System.ComponentModel/ComponentResourceManager.cs:54 
  at tablelayoutpanel.Form1.InitializeComponent () [0x00000] 
  at (wrapper remoting-invoke-with-check)
tablelayoutpanel.Form1:InitializeComponent ()
  at tablelayoutpanel.Form1..ctor () [0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x000a6] in
/home/cs/downloads/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:434 
  --- End of inner exception stack trace ---
  at tablelayoutpanel.My.MyProject+MyForms.Create__Instance__[Form1]
(tablelayoutpanel.Form1 Instance) [0x00000] 
  at tablelayoutpanel.My.MyProject+MyForms.get_Form1 () [0x00000] 
  at tablelayoutpanel.My.MyApplication.OnCreateMainForm () [0x00000] 
  at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun ()
[0x00000] 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run
(System.String[] commandLine) [0x00000] 
  at tablelayoutpanel.My.MyApplication.Main (System.String[] Args) [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.
You are the assignee for the bug.


More information about the mono-bugs mailing list