[Mono-dev] Strange GdkSharp.PixbufDestroyNotifyWrapper error..
buhochileno at gmail.com
buhochileno at gmail.com
Sat May 31 21:50:40 EDT 2008
> On Fri, 2008-05-30 at 17:00 -0400, buhochileno at gmail.com wrote:
>
>
>> ExcObject: System.InvalidProgramException: Invalid IL code in (wrapper
>> native-to-managed) GdkSharp.PixbufDestroyNotifyWrapper:NativeCallback
>> (intptr,intptr): IL_0030: call 0x00000006
>>
>
> I think this is a "known" issue with PixbufDestroyNotifyNative using a
> byte[] for the pixbuf parameter without the appropriate [MarshalAs]
> magic.
>
> I just committed a patch to gtk-sharp trunk (revision 104582) which
> should resolve the issue.
>
>
Thanks Mike...
Yap, I exactly use something like that to later update the "draw" of my
custom widget, the OnExpose event handler of my custom widget call a
function that do this:
internalPixbuf = new Pixbuf(buffer, Colorspace.Rgb, false, 8,
ImageWidth, ImageHeight, ImageWidth * 3, null); //internalPixBuf of
PixBuf type and buffer of
//byte[] type...
any alternatives?? (build the object in other way, use a temporary
object to do..something..), I really need to fix this and checkout+patch
and recompile all mono or gtk-sharp sources don't seems to be a easy
solution :-S, also wait to next rpm released is kind of long time ;-) ,
sugestions?, may be is posible to use a compiled version from you? I
would really apreciate if that is posible and fix the problem..
Thanks again Mike and any sugestion is apreciated....
Mauricio
> Mike
>
>
>
More information about the Mono-devel-list
mailing list