[Mono-bugs] [Bug 467202] Bitmap creating from other bitmap not thread safe.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 18 12:08:45 EST 2009


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

User kornelpal at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=467202#c1


Kornél Pál <kornelpal at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kornelpal at gmail.com




--- Comment #1 from Kornél Pál <kornelpal at gmail.com>  2009-01-18 10:08:44 MST ---
The problem presented by the test case is a bug indeed, but Bitmap object are
not expected to be thread safe.

Neither is MS GDI+ thread safe on actual object instances.

When dealing with bitmaps in ASP.NET I usually store them in [ThreadStatic()]
WeakReferences because on MS.NET I experienced very rare exceptions when
drawing a (static) Bitmap to new Bitmap.

Also note that libgdiplus caches images created from streams while MS GDI+
reads the stream every time the image is accessed so I have to create new
Bitmaps from Bitmaps to copy them to memory. libgdiplus in this sense still
much better than MS GDI+.

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