[Gtk-sharp-list] ipaq-familiar gtk-sharp

Lars Mählmann lmaehlmann@sunshine-company.de
Thu, 18 Nov 2004 16:48:56 +0100


This is a multi-part message in MIME format.
--------------010709010303020606030807
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello,
I am new with mono,gtk and I need some help to compile a simple 
GUI-Programm on an Ipaq Handheld
with familiar 072, mono-026 and gtk-sharp 0.8. (glib-2.0).

Or can someone tell me how I can start the Programm with "mint" when I
compile it on my PC.

Everytime I tried it:

 > mcs -pkg:gtk-sharp Main.cs
 > mcs -r /usr/lib/gtk-sharp.dll Main.cs

I got the same message:

> ** (/usr/bin/mcs.exe:793): WARNING **: Could not find assembly System.Drawing
> 
> ** (/usr/bin/mcs.exe:793): WARNING **: Could not find assembly System.Drawing
> 
> ** (/usr/bin/mcs.exe:793): WARNING **: Could not find assembly System.Drawing
> 
> Unhandled Exception: System.NullReferenceException: Segmentation fault

So I looked for System.Drawing on the handheld but I didn't find it. I 
think this could be the mistake.

The Source is from "Mono, a developer's Notebook"

I use the examples from :
http://amy.udd.htu.se/~malte/mono/
too but I got the same mistakes

If someone can help me it will be great. Thanks for your efforts.

Lars

--------------
Geschwister-Scholl-Strasse 91
20251 Hamburg
lmaehlmann@sunshine-company.de




--------------010709010303020606030807
Content-Type: text/plain;
 name="Main.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Main.cs"

// 04-gtk/01-basics
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");
		
		// set up event handling: verbose to illustrate
		// the use of delegates.
		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!");
	}
}

--------------010709010303020606030807--