[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
Tue Feb 19 16:22:02 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=362951

User rothflorian at gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=362951#c4





--- Comment #4 from Florian Roth <rothflorian at gmx.de>  2008-02-19 14:22:02 MST ---
I now have a workaround for my problem based on your patch. But still the
PixbufDestroyNotify delegate does not get called.
Bit it would be nice to see your patch in a future release of gtk# if it should
solve this problem.

And I have some questions to your patch:
gch = GCHandle.Alloc (this);
data_handle = GCHandle.Alloc (this, GCHandleType.Pinned);

The second line allocates the memory and pins the data, but what does the first
line do then?
And you pin the DestroyHelper object, but not the byte[]. As the byte[] is no
member of the helper wouldn't it be moved/deleted by the GC?

(sry, but I'm quite new to C# ;-)


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


More information about the mono-bugs mailing list