[Gtk-sharp-list] Problem with ScrolledWindow

tapia tapia at mcatalog.net
Mon May 23 11:44:23 EDT 2005


Hi.

I have a curious problem with an ScrolledWindow. I don't know if it's a
gtk# bug, so I prefer to ask here before reporting.

This is the code:

----------------------------
[Glade.Widget] private ScrolledWindow swPresentation;

(...)

presentation = new Presentation ();
swPresentation.AddWithViewport (presentation);
----------------------------

"Presentation" is just a gecko# WebControl.

This is the error I get when executing:

Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object
in <0x00000> <unknown method>
in (wrapper managed-to-native)
Gtk.ScrolledWindow:gtk_scrolled_window_add_with_viewport (intptr,intptr)
in <0x0006c> Gtk.ScrolledWindow:AddWithViewport (Gtk.Widget child)
in <0x00310> GladeApp:.ctor (System.String[] args)
in <0x00028> GladeApp:Main (System.String[] args)

Of course, I've checked that "presentation" and "swPresentation" are not
null.

I've tryied with gtk# 1.9.3, 1.9.5 and 2.5.5, with the same results. I'm
using mono 1.1.7 in a Ubuntu Breezy PPC machine.

Thank you.

C.



More information about the Gtk-sharp-list mailing list