[Mono-dev] [Mono-winforms-list] Is System.Drawing (libgdiplus) thread-safe?

Rafael Teixeira monoman at gmail.com
Wed Oct 28 13:51:25 EDT 2009


AFAIK, most classes/methods in System.Drawing (as well as most of the
System.* namespaces) are marked as non-threadsafe.

See msdn docs for each class/method to be sure, as we follow suit.

Rafael "Monoman" Teixeira
---------------------------------------
"To be creative means to be in love with life. You can be creative only if
you love life enough that you want to enhance its beauty, you want to bring
a little more music to it, a little more poetry to it, a little more dance
to it."
Osho


On Wed, Oct 28, 2009 at 3:47 PM, Alex Shulgin <
alexander.shulgin at yessoftware.com> wrote:

> Alex Shulgin wrote:
> > Hi all,
> >
> > Is System.Drawing by any means thread-safe?
> >
> > Can I create some threads, create a Graphics object in each of them and
> > then work with it from within that thread?  Is this supposed to work or
> > am I doing something really stupid here?
>
> Oh, forgot to mention that I've tested this on both 2.4 and latest
> available 2.6.  The results are the same.
>
> --
> Alex
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091028/d5ab0265/attachment.html 


More information about the Mono-devel-list mailing list