[Gtk-sharp-list] Problem with ScrolledWindow

Paulo Pires paulo.pires at vodafone.pt
Mon May 23 13:42:45 EDT 2005


Hi

Could u try to make a test-case and attach it?

PP


Seg, 2005-05-23 às 17:44 +0200, tapia escreveu:
> 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.
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



More information about the Gtk-sharp-list mailing list