[Mono-dev] Strange GdkSharp.PixbufDestroyNotifyWrapper error..

buhochileno at gmail.com buhochileno at gmail.com
Fri May 30 17:00:29 EDT 2008


Hi guys:

I have a simple code in a gtk window that use a pixbuf to put some image 
in a widget that inherit from DrawingArea, then at some point I call to 
the SetSizeRequest function and I get a really weird 
"InvalidProgramException"..the widget is associate internally to the 
OnExposeEvent, the handler is reached but then when I call to function 
that update a internal Pixbuf (still not doing nothing with the widget, 
just the function that update de pixbuf that is used later in the 
handler to update the "draw" of the drawingarea) the app crash with a:

ExcObject: System.InvalidProgramException: Invalid IL code in (wrapper 
native-to-managed) GdkSharp.PixbufDestroyNotifyWrapper:NativeCallback 
(intptr,intptr): IL_0030: call      0x00000006
  at (wrapper managed-to-native) 
System.Object:__icall_wrapper_mono_delegate_to_ftnptr (object)
 at (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_new_from_data 
(byte[],int,bool,int,int,int,int,GdkSharp.PixbufDestroyNotifyNative,intptr)
  at Gdk.Pixbuf..ctor (System.Byte[] data, Colorspace colorspace, 
Boolean has_alpha, Int32 bits_per_sample, Int32 width, Int32 height, 
Int32 rowstride, Gdk.PixbufDestroyNotify destroy_fn) [0x00000]

I use GLib.ExceptionManager.UnhandledException to get that little info :-S

The weird thing is that with exactly the same code with mono-1.2.6 work 
like a charm and now the problem show up after a update to mono-1.9.1-3.1...

any ideas?, I don't know even where to start...what that kind of message 
mean to begin to figure out what is happening?, some "rule" change to 
deal with pixbuf and that kind of types from mono-1.2.6 ?

Thanks.

Mauricio

 



More information about the Mono-devel-list mailing list