[Gtk-sharp-list] Hello World help

Fabian Vargas favosys@express.net.co
Mon, 11 Nov 2002 15:41:07 -0500


Hello
thanks for your code, it compiled ok but I still get the message
---
** ERROR **: No GCHandle support built-in

aborting...

Aborted

---

when I try to run it with mono or mint, I guess that means Garbage collector
but I haven't found it, can u help please?



Fabian

----- Original Message -----
From: "Martin Willemoes Hansen" <mwh@sysrq.dk>
To: "Fabian Vargas" <favosys@express.net.co>
Sent: Monday, November 11, 2002 1:54 PM
Subject: Re: [Gtk-sharp-list] Hello World help


> I didnt realy follow your thread, but I thought I had had a problem like
> yours before, here are some code try it out:
>
> namespace SysrqDk {
>         using Gtk;
>         using GtkSharp;
>         using System;
>
>         public class HelloWorld {
>                 public static void Main() {
>                         Application.Init();
>                         Window win = new Window ("Hello, World!");
>                         win.DeleteEvent += new DeleteEventHandler
> (WindowDelete);
>                         win.ShowAll();
>                         Application.Run();
>                 }
>
>                 static void WindowDelete (object o, DeleteEventArgs
> args) {
>                         Application.Quit();
>                         args.RetVal = true;
>                 }
>         }
>
> }
>
> --
> Martin Willemoes Hansen
>
> --------------------------------------------------------
> E-Mail mwh@sysrq.dk Website mwh.sysrq.dk
> IRC     MWH, freenode.net
> --------------------------------------------------------