[Mono-list] monodoc browser, System.NullReferenceException

Luis Rodero lrodero@gsyc.escet.urjc.es
Mon, 20 Oct 2003 14:24:38 +0200


hi,

After downloading by cvs and compiling the lasts versions of mono, mcs,
gtk-sharp and monodoc, I still have a problem with the monodoc gtk#
browser. I get a System.NullReferenceException, the stack is:

Unhandled Exception: System.NullReferenceException: A null value was found where an object instance
was required
in (unmanaged) (wrapper managed-to-native) Gtk.HTML:gtk_html_end (intptr,Gtk.HTMLStream&,int)
in <0x00004> (wrapper managed-to-native) Gtk.HTML:gtk_html_end (intptr,Gtk.HTMLStream&,int)
in <0x00026> Gtk.HTML:End (Gtk.HTMLStream,Gtk.HTMLStreamStatus)
in <0x000b6> Monodoc.Browser:Render (string,Monodoc.Node,string)
in <0x0066d> Monodoc.Browser:.ctor ()
in <0x002b8> Monodoc.Driver:Main (string[])


It seems that the problem it's in the gtk# lib. 'Exploring' the file
source  gtk-sharp/generated/HTML.cs we find:

  static extern void gtk_html_end(IntPtr raw, ref Gtk.HTMLStream handle, int status);

  public void End(Gtk.HTMLStream handle, Gtk.HTMLStreamStatus status) {
  	gtk_html_end(Handle, ref handle, (int) status);
  }

Btw, that 'Handle' element (gtk_html_end call) is not defined in the
HTML.cs file, so, where is it imported from?.

Just in case someone wonders, I installed gtkhtml3 and libgal2 (debian
woody) and uninstalled any gal-dev package before building gtk#. 

thanks, saludos
luis
-- 
---------------------------------------------
Luis Rodero Merino
lrodero@gsyc.escet.urjc.es
tel: +34 91 488 81 07   fax: +34 91 664 74 90
---------------------------------------------
Grupo de Systemas y Comunicaciones
ESCET, Universidad Rey Juan Carlos
---------------------------------------------