I reported the bug with a minimal project reproducing it. Thanks for your reply!
Carlos Alberto wrote: > > It seems like a bug. Would you mind filling a bug with an attached test > case? > > Thanks! > > 2009/4/22 noda <www....@free.fr> > >> >> Hello, >> >> I have the strange exception below that is raised when I try to create a >> new >> instance of my MainForm class (a classic windows Form): >> >> >> ------------------------------------------------------------------------------ >> Exception has been thrown by the target of an invocation. >> at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags >> invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, >> System.Globalization.CultureInfo culture) [0x00000] >> at System.Reflection.MonoProperty.SetValue (System.Object obj, >> System.Object value, BindingFlags invokeAttr, System.Reflection.Binder >> binder, System.Object[] index, System.Globalization.CultureInfo culture) >> [0x00000] >> at System.Reflection.PropertyInfo.SetValue (System.Object obj, >> System.Object value, System.Object[] index) [0x00000] >> at System.ComponentModel.ComponentResourceManager.ApplyResources >> (System.Object value, System.String objectName, >> System.Globalization.CultureInfo culture) [0x00000] >> at System.ComponentModel.ComponentResourceManager.ApplyResources >> (System.Object value, System.String objectName) [0x00000] >> at MAEVA.GUI.MainForm.InitializeComponent () [0x00000] >> at MAEVA.GUI.MainForm..ctor () [0x00000] >> at (wrapper remoting-invoke-with-check) MAEVA.GUI.MainForm:.ctor () >> at MAEVA.Editor.NeedReload () [0x00000] >> >> ------------------------------------------------------------------------------ >> >> >> It contains an inner exception suggesting a problem related to the >> TableLayoutPanel: >> >> ------------------------------------------------------------------------------ >> LayoutSettings value cannot be set directly. >> at System.Windows.Forms.TableLayoutPanel.set_LayoutSettings >> (System.Windows.Forms.TableLayoutSettings value) [0x00000] >> 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) [0x00000] >> >> ------------------------------------------------------------------------------ >> >> I'm running Mono 2.4 on windows when this exception occurs. It does not >> occur when using the MS .Net framework. >> >> The binary is compiled with MSVC# 2008, and the form has nothing special >> and >> was designed using the form designer of visual studio. >> >> Do you have any idea on how to resolve this problem? Or maybe it is a bug >> with Mono? >> >> Thanks a lot! >> >> Yohan >> >> >> -- >> View this message in context: >> http://www.nabble.com/Strange-exception-related-to-TableLayoutPanel--tp23172152p23172152.html >> Sent from the Mono - WinForms mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-winforms-list >> > > _______________________________________________ > Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-winforms-list > > -- View this message in context: http://www.nabble.com/Strange-exception-related-to-TableLayoutPanel--tp23172152p23193210.html Sent from the Mono - WinForms mailing list archive at Nabble.com. _______________________________________________ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list