[Mono-bugs] [Bug 362951] GC moves data of Gdk.Pixbuf when creating it with RGB buffer

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 23 05:51:10 EST 2008


User rothflorian at gmx.de added comment

Florian Roth <rothflorian at gmx.de> changed:

           What    |Removed                                         |Added
                 CC|                                                |rothflorian at gmx.de

--- Comment #7 from Florian Roth <rothflorian at gmx.de>  2008-02-23 03:51:09 MST ---
Ah nice :D

I just realized one more thing:

Creating a Pixbuf with a PixbufDestroyNotify delegate causes the following
error for me with Mono 1.2.5 and 1.2.6:

Unhandled Exception: System.InvalidProgramException: Invalid IL code in
 native-to-managed) GdkSharp.PixbufDestroyNotifyWrapper:NativeCallback
ntptr): IL_0030: call      0x00000006

  at (wrapper managed-to-native)
ftnptr (object)
  at (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_new_from_data
  at Gdk.Pixbuf..ctor (System.Byte[] data, Colorspace colorspace, Boolean
pha, Int32 bits_per_sample, Int32 width, Int32 height, Int32 rowstride,
ufDestroyNotify destroy_fn) [0x00000]
  at Gdk.Pixbuf..ctor (System.Byte[] data, Boolean has_alpha, Int32
ple, Int32 width, Int32 height, Int32 rowstride, Gdk.PixbufDestroyNotify
_fn) [0x00000]

I realized this when testing my app under Linux. Mono on Windows brings this
error as well. Can you verify this?

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list