[Mono-list] LockBits() on Mono 2.2?

Alan McGovern alan.mcgovern at gmail.com
Thu Mar 19 21:02:49 EDT 2009


Hey,

Well, if there's a bug then please try to reduce the testcase as much as
possible before submitting it. If you can't it's still worth filing a bug
and giving as much detail as you can.

If its working on .NET but not Mono that's not a good sign. I was
> afraid of something like this.


If there is an issue with a specific method, there are generally other ways
of accomplishing exactly the same task. Sometimes all you need to do is use
a different overload of the same method. For example here are two alternate
methods of copying a bitmap, both of which are probably higher performance
and both are definitely less bug prone:

http://msdn.microsoft.com/en-us/library/aa457087.aspx

So if you do encounter any issues, please file bug reports so they can be
dealt with for the next release.

Alan.

>
>
>
> Stifu wrote:
> >
> > I found a certain GDI+ bug recently, and I *think* it's related to
> > LockBits(). I'm not sure, and didn't report the bug as I couldn't make a
> > reduced test case yet. However, if you're interested, I can send you my
> > not-so-reduced test case so you can have a look.
> >
> > But to sum things up: I have a Bitmap, try to clone it, and the cloned
> > Bitmap is all black... while this works fine with .NET.
> >
> >
> > LKeene wrote:
> >>
> >> Hello all, I have a general question regarding the use of LockBits() (in
> >> GDI+) for reading/writing to a bitmap.  I'm using Mono 2.2 and am
> >> targeting Windows, OSX and Linux. Any current issues concerning the use
> >> of LockBits()/UnlockBits() I should be aware of? Any nasty buggies I
> >> should be on the lookout for? I found a few posts pertaining to this but
> >> they're not very current.
> >>
> >> Thanks eveyone.
> >>
> >> -L
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/LockBits%28%29-on-Mono-2.2--tp22611389p22611603.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090320/92e2387e/attachment.html 


More information about the Mono-list mailing list