[Mono-bugs] [Bug 438886] Mono 2.0.1 Windows.Form crashes (Windows only)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 21 01:10:33 EST 2008


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

User avidigal at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=438886#c13





--- Comment #13 from Andreia Gaita <avidigal at novell.com>  2008-11-20 23:10:32 MST ---
Notes for future memory: r115349 fixes #433908, which causes parent finalizers
to be called. The Bitmap class happens to not have a finalizer, so images would
never get collected by the gc. When this was fixed, we stopped leaking images. 

It just so happens that images created from resources are cloned immediately
after loading by the resource manager, and on windows, gdi+ clone only creates
a new image pointer, but keeps it pointed to the original stream. The original
object will then be disposed, which destroys the underlying stream, so the
cloned image will lose it's data and segfault when we try to draw anytime after
the gc collects.

*shrug*


-- 
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