15 Mar 2012 18:47
GDI+ status: InvalidParameter from LinearGradientBrush
KeithBoynton <keithboynton <at> flaredesign.co.uk>
2012-03-15 17:47:26 GMT
2012-03-15 17:47:26 GMT
I'm receiving this error when trying to run an application on OS-X under Mono which is being ported from Windows. Obviously the application runs fine in Windows. I've pulled across the .sln and all class files etc. from the Visual Studio 2010 project into my MonoDevelop environment in OS-X Lion. The solution compiles fine with no errors. However when I try to run it I get this error. A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009d] in /private/tmp/monobuild/build/BUILD/mono-2.10.8/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:220 at System.Drawing.Drawing2D.LinearGradientBrush..ctor (Rectangle rect, Color color1, Color color2, LinearGradientMode linearGradientMode) [0x00025] in /private/tmp/monobuild/build/BUILD/mono-2.10.8/mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientBrush.cs:66 at (wrapper remoting-invoke-with-check) System.Drawing.Drawing2D.LinearGradientBrush:.ctor (System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,System.Drawing.Drawing2D.LinearGradientMode) at System.Windows.Forms.ToolStripProfessionalRenderer.OnRenderToolStripPanelBackground (System.Windows.Forms.ToolStripPanelRenderEventArgs e) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripProfessionalRenderer.cs:425 at System.Windows.Forms.ToolStripRenderer.DrawToolStripPanelBackground (System.Windows.Forms.ToolStripPanelRenderEventArgs e) [0x00000] in(Continue reading)
RSS Feed