[Mono-bugs] [Bug 62889][Wis] New - Mono 1.0.1 with Gtk# Runtime error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 11 Aug 2004 16:15:18 -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 ericho@eden.rutgers.edu.

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

--- shadow/62889	2004-08-11 16:15:18.000000000 -0400
+++ shadow/62889.tmp.25856	2004-08-11 16:15:18.000000000 -0400
@@ -0,0 +1,114 @@
+Bug#: 62889
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: WinXP
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Wishlist
+Component: packaging
+AssignedTo: duncan@ximian.com                            
+ReportedBy: ericho@eden.rutgers.edu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono 1.0.1 with Gtk# Runtime error
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+mono 1.0.1 with gtk#
+compilation is OK, but encountered runtime error. Don't know why it is 
+still looking for 1.0 library.
+
+Steps to reproduce the problem:
+1. mcs <program name> -pkg:gtk-sharp
+2. mono
+3. 
+
+Actual Results:
+
+C:\csharp>path
+PATH=c:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32
+\Wbem;c:\Free
+wares;c:\blast;c:\Program Files\mono-1.0.1\bin
+
+C:\csharp>mcs Main.cs -pkg:gtk-sharp
+Compilation succeeded
+
+C:\csharp>mono Main.exe
+Compat mode: the request from C:\PROGRA~1\MONO-1~1.1\lib\mono\gac\glib-
+sharp\1.0
+.0.0__35e10195dab3c99f\glib-sharp.dll to load System was remapped 
+(http://www.go
+-mono.com/remap.html)
+Cannot load module C:/mono/Mono-1.0/lib/pango/1.2.0/modules/pango-basic-
+win32.dl
+l: The specified module could not be found.
+Cannot load module C:/mono/Mono-1.0/lib/pango/1.2.0/modules/pango-basic-
+win32.dl
+l: The specified module could not be found.
+Cannot load module C:/mono/Mono-1.0/lib/pango/1.2.0/modules/pango-basic-
+win32.dl
+l: The specified module could not be found.
+Cannot load module C:/mono/Mono-1.0/lib/pango/1.2.0/modules/pango-basic-
+win32.dl
+l: The specified module could not be found.
+Cannot load module C:/mono/Mono-1.0/lib/pango/1.2.0/modules/pango-basic-
+win32.dl
+l: The specified module could not be found.
+Cannot load module C:/mono/Mono-1.0/lib/pango/1.2.0/modules/pango-basic-
+win32.dl
+l: The specified module could not be found.
+Hello World!
+Hello World!
+Hello World!
+
+Expected Results:
+
+
+How often does this happen? 
+
+
+Additional Information:
+
+My simple hello world gtk# source:
+
+using System;
+using Gtk;
+
+class MainClass {
+        public static void Main (string[] args)
+        {
+                Application.Init();
+
+                Window w = new Window ("Gtk# Basics");
+                Button b = new Button ("Hit me");
+
+                // setup event handling: verbose to illustrate
+                // the use of delegate.
+                w.DeleteEvent += new DeleteEventHandler (Window_Delete);
+                b.Clicked += new EventHandler (Button_Clicked);
+
+                // initialize the GUI
+                w.Add(b);
+                w.SetDefaultSize(200, 100);
+                w.ShowAll();
+
+                Application.Run();
+        }
+
+        static void Window_Delete (object o, DeleteEventArgs args)
+        {
+                Application.Quit();
+                args.RetVal = true;
+        }
+
+        static void Button_Clicked (object o, EventArgs args)
+        {
+                System.Console.WriteLine("Hello World!");
+        }
+}