[Mono-devel-list] Build errors System.Drawing.dll

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Nov 3 21:46:54 EST 2003


El mar, 04-11-2003 a las 01:23, Richard Thombs escribió:
> I had the same problem, and while I am no expert about unsafe code and
> the 'fixed' statement, there is a simple tweak to at least make it
> compile:
> 
> Index: JPEGCodec.cs
> ===================================================================
> RCS file:
> /mono/mcs/class/System.Drawing/System.Drawing.Imaging/JPEGCodec.cs,v
> retrieving revision 1.10
> diff -u -r1.10 JPEGCodec.cs
> --- JPEGCodec.cs	24 Oct 2003 05:05:29 -0000	1.10
> +++ JPEGCodec.cs	4 Nov 2003 00:20:30 -0000
> @@ -704,7 +704,7 @@
>  				// Setup the pointers
>  				//
>  				unsafe {
> -					fixed (void **p =
> &outbuf.JSAMPLE0){
> +					void **p = &outbuf.JSAMPLE0;{
>  						for (int i = 0; i <
> rec_outbuf_height; i++){
>  							p [i] = start;
>  							start += stride;
> 
> 

Yeah. I did the same.
I'm gonna file a bug report against mcs and then commit those lines.

Thanks.

-Gonzalo





More information about the Mono-devel-list mailing list