[Mono-bugs] [Bug 62208][Wis] New - space in string for Gnome.Program arg is invalid
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 30 Jul 2004 18:05:14 -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 microsoft21228@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=62208
--- shadow/62208 2004-07-30 18:05:14.000000000 -0400
+++ shadow/62208.tmp.28797 2004-07-30 18:05:14.000000000 -0400
@@ -0,0 +1,96 @@
+Bug#: 62208
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details: Linux RedHat 9
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: microsoft21228@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: space in string for Gnome.Program arg is invalid
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+
+Description of Problem:
+
+'space' in string causes execution failure, compile OK.
+Should this be a failure or not ???
+Failing during execution seems awfully inconvenient
+and hard to track.
+
+Steps to reproduce the problem:
+1. mcs helloworld2.cs -pkg:gnome-sharp,gtk-sharp
+2. compile succeeds
+3. mono helloworld2.exe; fail
+
+Actual Results:
+
+[root@mailhost c#]# mcs helloworld2.cs -pkg:gnome-sharp,gtk-sharp
+Compilation succeeded
+[root@mailhost c#]# mono helloworld2.exe
+
+Unhandled Exception: System.ArgumentException: app_id argument can't
+contain spaces.
+in <0x00094> Gnome.Program:.ctor
+(string,string,Gnome.ModuleInfo,string[],object[])
+in <0x00076> HelloWorld:Main (string[])
+
+Expected Results:
+
+root@mailhost c#]# mcs helloworld2.cs -pkg:gnome-sharp,gtk-sharp
+Compilation succeeded
+[root@mailhost c#]# mono helloworld2.exe
+ Window displayed on screen with app name
+
+
+How often does this happen?
+everytime.
+
+Additional Information:
+
+source helloworld2.cs stolen from web mono maillist:
+
+ class HelloWorld
+ {
+ static void Main(string[] args)
+ {
+ Gnome.Program program =
+// string in next statement fails with 'space'
+// insert underscore and it works.
+ new Gnome.Program("Hello World", "1.0",
+Gnome.Modules.UI, args);
+
+ MyMainWindow app = new MyMainWindow(program);
+ app.ShowAll();
+
+ program.Run();
+ }
+ }
+
+
+
+ class MyMainWindow : Gnome.App
+ {
+ Gnome.Program program;
+
+ public MyMainWindow(Gnome.Program gnome_program)
+ : base("Hello_World", "Hello_World")
+ {
+ this.program = gnome_program;
+
+ this.DeleteEvent += delete_event;
+ }
+
+ private void delete_event(object obj, Gtk.DeleteEventArgs args)
+ {
+ this.program.Quit();
+ }
+ }