[Mono-bugs] [Bug 61158][Nor] New - Cannot compile same code in Windows and Linux
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 5 Jul 2004 03:55:26 -0400 (EDT)
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 michael.haider@hofstaedtler.com.
http://bugzilla.ximian.com/show_bug.cgi?id=61158
--- shadow/61158 2004-07-05 03:55:26.000000000 -0400
+++ shadow/61158.tmp.25481 2004-07-05 03:55:26.000000000 -0400
@@ -0,0 +1,80 @@
+Bug#: 61158
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details: Win 2000 and WinXP
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: michael.haider@hofstaedtler.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Cannot compile same code in Windows and Linux
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+The following sourcecode works under Debian Linux but not under windows:
+This code is copied from the mono-documentation.
+
+using System;
+using Gtk;
+
+class ComboSample
+{
+ Combo combo;
+
+ static void Main ()
+ {
+ new ComboSample ();
+ }
+
+ ComboSample ()
+ {
+ Application.Init ();
+
+ Window win = new Window ("ComboSample");
+ win.DeleteEvent += new DeleteEventHandler (OnWinDelete);
+
+ string[] list = new string[] {"one", "two", "three"};
+
+ combo = new Combo ();
+ combo.PopdownStrings = list;
+ combo.DisableActivate ();
+ combo.Entry.Activated += new EventHandler (OnEntryActivated);
+
+ win.Add (combo);
+
+ win.ShowAll ();
+ Application.Run ();
+ }
+
+ void OnEntryActivated (object o, EventArgs args)
+ {
+ Console.WriteLine (combo.Entry.Text);
+ }
+
+ void OnWinDelete (object obj, DeleteEventArgs args)
+ {
+ Application.Quit ();
+ }
+}
+
+Actual Results:
+
+main.cs(24) error CS0029: Cannot convert implicitly from `string[]' to
+`GLib.List'
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+Compilation success!
+
+How often does this happen?
+everytime
+
+Additional Information: