[Mono-bugs] [Bug 78066][Blo] New - An attribute can't be assigned to multiple member variables.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Apr 9 13:00:16 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by projects at saring.de.

http://bugzilla.ximian.com/show_bug.cgi?id=78066

--- shadow/78066	2006-04-09 13:00:16.000000000 -0400
+++ shadow/78066.tmp.10358	2006-04-09 13:00:16.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 78066
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: Ubuntu 5.10
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: projects at saring.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: An attribute can't be assigned to multiple member variables.
+
+This bug was introduced with Mono 1.1.14, until Mono 1.1.13.6 it works
+without problems. 
+
+Bug description:
+An attribute can be applied to multiple class member variables in one code
+of line, e.g. this example applies the Glade.WidgetAttribute to all three
+labels.
+
+    [Glade.WidgetAttribute]
+    Gtk.Label label1, label2, label3;
+
+Since Mono 1.1.14 the application crashes, because all the label are null
+after using Glade.XML.AutoConnect() 
+So I must use this workaround for beeing able to start the application with
+Mono 1.1.14 (then it works):
+
+    [Glade.WidgetAttribute]
+    Gtk.Label label1;
+    [Glade.WidgetAttribute]
+    Gtk.Label label2;
+    [Glade.WidgetAttribute]
+    Gtk.Label label3;
+
+I think this is a compiler bug, because when the above example will be
+compiled with Mono 1.1.13 it runs fine in Mono 1.1.14. It only crashes when
+it was compiled with Mono 1.1.14.
+
+I'll attach a little demo application where you have a simple Glade
+application which crashes at startup with Mono 1.1.14. You can simply
+uncomment the workaround and then it will work.


More information about the mono-bugs mailing list