[Mono-winforms-list] Landing: libgdiplus cairo 1.0 update

Peter Dennis Bartok peter at novonyx.com
Thu Aug 25 22:11:07 EDT 2005

This should be fixed in the branch as of r48865.


-----Original Message-----
From: "Alexander Olk" <xenomorph2 at onlinehome.de>
To: <mono-winforms-list at lists.ximian.com>
Date: 25 August, 2005 12:42
Subject: Re: [Mono-winforms-list] Landing: libgdiplus cairo 1.0 update

>Am Donnerstag, den 25.08.2005, 12:25 -0600 schrieb Peter Dennis Bartok:
>> While we have tested the new lib quite thoroughly, however, it is always
>> possible that we missed something and that you may run into a problem 
>> that
>> didn't exist with the previous library. If you do, please let us know on 
>> the
>> list or file a bug report so we can get it squared away. Your patience is
>> appreciated during the switch-over.
>Ok, here is a first problem:
>Unhandled Exception: System.NullReferenceException: Object reference not
>set to an instance of an object
>in <0x00000> <unknown method>
>in (wrapper managed-to-native) System.Drawing.GDIPlus:GdipFillRectangleI
>in [0x00012]
>System.Drawing.Graphics:FillRectangle (System.Drawing.Brush brush, Int32 x, 
>Int32 y, Int32 width, Int32 height)
>in [0x0001e]
>System.Drawing.Graphics:FillRectangle (System.Drawing.Brush brush, 
>Rectangle rect)
>in (wrapper remoting-invoke-with-check)
>in [0x00120]
>System.Windows.Forms.ThemeNice:DrawButtonBase (System.Drawing.Graphics dc, 
>Rectangle clip_area, System.Windows.Forms.ButtonBase button)
>in [0x00012]
>System.Windows.Forms.ButtonBase:Draw (System.Windows.Forms.PaintEventArgs 
>in [0x00002]
>(System.Windows.Forms.PaintEventArgs pevent)
>and so on...
>LinearGradientBrush lgbr;
>if ( button.flat_style == FlatStyle.Flat )
> lgbr = new LinearGradientBrush( new Point( 0, 0 ),
> new Point( 0, height ), use_color,
> Color.White );
> lgbr = new LinearGradientBrush( new Point( 0, 0 ),
> new Point( 0, height ), Color.White,
> use_color );
>dc.FillRectangle( lgbr, lgbRectangle );
>lgbr.Dispose( );
>FillRectangle is in line 211 in ThemeNice.cs...
>Alexander Olk
>Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com

More information about the Mono-winforms-list mailing list