[Gtk-sharp-list] Gdk.Pixbuf.Savev() throws System.NullReferenceException

Mike Kestner mkestner@ximian.com
Fri, 16 Apr 2004 11:22:11 -0500

On Tue, 2004-04-13 at 13:46, Ivan GuÅūvinec wrote:

> Unhandled Exception: System.NullReferenceException: A null value was
> found where an object instance was required.
> in (unmanaged) (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_savev
> (intptr,string,string,string,string,intptr&)
> in <0x00004> (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_savev
> (intptr,string,string,string,string,intptr&)
> in <0x0003a> Gdk.Pixbuf:Savev (string,string,string,string)
> in <0x000a2> pixbufTest:Main (string[])

> Is this a bug or did I get the parameters to the method wrong?

Please open a bug report with your sample and I'll take a look at it
during my next bug sweep.  In the meantime, you could also run the
program in gdb with mono --breakonex and see where the segfault is
occuring in the unmanaged code.  Maybe that will help determine if it's
your code at fault.  I see nothing wrong with the binding of that method
at first glance.

Mike Kestner <mkestner@ximian.com>