[Gtk-sharp-list] gtk newbie
Marco Rego
marco@amazonware.com
Tue, 13 Apr 2004 13:06:35 -0400
Antonio, did not work for me here. Same error as before.
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
in (unmanaged) (wrapper managed-to-native) Gtk.Widget:gtk_widget_show
(intptr)
in <0x00004> (wrapper managed-to-native) Gtk.Widget:gtk_widget_show
(intptr)
in <0x0001f> Gtk.Widget:Show ()
in <0x00019> MyWindow:.ctor ()
in <0x00020> TestMyWindow:Main (string[])
Thanks anyway for answering.
Marco.
> Hello Marco. Take a look on the constructor.
> Your code works with a little change :)
>
> using Gtk;
> using System;
>
> public class MyWindow : Window {
> public MyWindow(string cad):base(cad) {
> this.Show();
> }
> }
>
> public class TestMyWindow {
> public static void Main(string[] args) {
> Application.Init ();
> new MyWindow("My app");
> Application.Run();
> }
> }
>
> --
> Antonio Martínez
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
--
________________________
Marco Rego
AmazonWare
Manaus
Fone/Fax: (92) 648-0354
Celular: (92) 9991-9953