[Mono-list] Mono Error

Stifu stifu at free.fr
Tue Mar 3 13:43:05 EST 2009


Please make a reduced test case and report this bug.


eschneider wrote:
> 
> The problem seems to be with this code:
> 
>                             Dim bm As Bitmap = New Bitmap(m_Image)
>                             bm.MakeTransparent()
>                             m_Image = bm
> 
> ----------------------------------------
> From: "eschneider at schneidersoft.com" <eschneider at schneidersoft.com>
> Sent: Tuesday, March 03, 2009 11:05 AM
> To: mono-list at lists.ximian.com
> Subject: [Mono-list] Mono Error 
> 
> Hello,
> 
> I'm trying the latest mono and I get the below error when running on Mono 
> 2.4 & WIN XPSP3.
> 
> Looks like it has something to do with drawing or bitmaps. The Program
> runs 
> fine in Windows/MS.NET.
> I also tested the app on MOMA, it did not show anything for this.
> 
> Maybe there is a easy work around or a different overload I could call?
> 
> Thanks,
> Eric
> 
> C:\Documents and Settings\eschneider>mono --debug 
> E:\SchneiderSoftware\SchneiderSoft.UIControls\TestApp\bin\Debug\TestApp.exe
> 
> 
> System.InvalidOperationException: The operation is invalid [GDI+ status: 
> Win32Error]
>   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00229] in 
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\System.Drawing\System
> .Drawing\gdipFunctions.cs:255
>   at System.Drawing.Graphics.DrawImage (System.Drawing.Image image, Int32 
> x, Int32 y, Int32 width, Int32 height) [0x00029] in 
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\System.Drawing\System
> .Drawing\Graphics.cs:783
>   at (wrapper remoting-invoke-with-check)
> System.Drawing.Graphics:DrawImage 
> (System.Drawing.Image,int,int,int,int)
>   at System.Drawing.Bitmap..ctor (System.Drawing.Image original, Int32 
> width, Int32 height) [0x00014] in 
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\System.Drawing\System
> .Drawing\Bitmap.cs:154
>   at System.Drawing.Bitmap..ctor (System.Drawing.Image original) [0x00000] 
> in 
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\build\common\Consts.cs:1
>   at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor 
> (System.Drawing.Image)
>   at SchneiderSoft.UIControls.ImageAssociatedHelper.get_Image () [0x00000]
>   at 
> SchneiderSoft.UIRenderers.FactoryRenderers.CreateButtonRendererArguments 
> (IButton button) [0x00000]
>   at SchneiderSoft.UIControls.Button.CreateControlRendererArguments () 
> [0x00000]
> 
>   at SchneiderSoft.UIControls.Button.CreateListRendererArguments () 
> [0x00000]
>   at SchneiderSoft.UIControls.Button.CreateListRendererState () [0x00000]
>   at SchneiderSoft.UIRenderers.VisualListRenderer.CreateItemRendererState 
> (IRendererListArguments renderArgs, System.Object value, Boolean 
> isLastItem) [0x00000]
> 
>   at SchneiderSoft.UIRenderers.VisualListRenderer.CreateRenderList 
> (IRendererListArguments renderArgs) [0x00000]
>   at SchneiderSoft.UIRenderers.VisualListRenderer.DrawList 
> (IRendererListArguments renderArgs) [0x00000]
>   at SchneiderSoft.UIRenderers.VisualListRenderer.OnDraw 
> (IRendererArguments renderArgs) [0x00000]
>   at SchneiderSoft.UIRenderers.ControlRenderer.Draw (IRendererArguments 
> renderArgs) [0x00000]
>   at SchneiderSoft.UIControls.VisualList.OnPaint 
> (System.Windows.Forms.PaintEventArgs e) [0x00000]
>   at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message&
> m) 
> [0x0008a] in 
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
> \System.Windows.Forms\Control.cs:5561
>   at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&
> m) 
> [0x0016c] in 
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
> \System.Windows.Forms\Control.cs:5319
>   at System.Windows.Forms.Control+ControlWindowTarget.OnMessage 
> (System.Windows.Forms.Message& m) [0x00000] in 
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
> \System.Windows.Forms\Control.cs:234
>   at System.Windows.Forms.Control+ControlNativeWindow.WndProc 
> (System.Windows.Forms.Message& m) [0x00000] in 
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\cl
> ass\Managed.Windows.Forms\System.Windows.Forms\Control.cs:215
>   at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, 
> IntPtr wParam, IntPtr lParam) [0x00085] in 
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
> \System.Windows.Forms\NativeWindow.cs:242
> 
>  
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Mono-Error-tp22313168p22315004.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list