[Mono-winforms-list] A null reference or invalid value was found [GDI+ status: invalidParameter]

Jay Ge jay.yk.ge at gmail.com
Thu Oct 17 02:31:35 UTC 2013


Hi,

thanks for reading my mail, it is very urgent, please help !!!!!!!!!!!!

I created one new Window Forms Application, without any coding. then move
to MonoDevelop @ Fedora 18 (i installed latest monodevelop in Fedora with
yum install monodevelop), Compile is fine, but when try to run, it reports
below error: (Do i need to install other patch or something else for this?)

System.Drawing.GDIPlus.CheckStatus
(status=System.Drawing.Status.InvalidParameter) in
/builddir/build/BUILD/mono-2.10.8/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:220
System.Drawing.Bitmap..ctor (width=0, height=0,
format=System.Drawing.Imaging.PixelFormat.Format32bppArgb) in
/builddir/build/BUILD/mono-2.10.8/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:97
System.Drawing.Bitmap..ctor (original={System.Drawing.Bitmap}, width=0,
height=0) in
/builddir/build/BUILD/mono-2.10.8/mcs/class/System.Drawing/System.Drawing/Bitmap.cs
System.Drawing.Bitmap..ctor (original={System.Drawing.Bitmap},
newSize={{Width=0, Height=0}}) in
/builddir/build/BUILD/mono-2.10.8/mcs/class/System.Drawing/System.Drawing/Bitmap.cs
System.Windows.Forms.XplatUIX11.DefineCursor
(bitmap={System.Drawing.Bitmap}, mask={System.Drawing.Bitmap},
cursor_pixel={Color [A=255, R=255, G=255, B=255]}, mask_pixel={Color
[A=255, R=255, G=255, B=255]}, xHotSpot=7, yHotSpot=7) in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3023
System.Windows.Forms.XplatUI.DefineCursor (bitmap={System.Drawing.Bitmap},
mask={System.Drawing.Bitmap}, cursor_pixel={Color [A=255, R=255, G=255,
B=255]}, mask_pixel={Color [A=255, R=255, G=255, B=255]}, xHotSpot=7,
yHotSpot=7) in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:567
System.Windows.Forms.Cursor.CreateCursor
(stream={System.IO.UnmanagedMemoryStream}) in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Cursor.cs:110
System.Windows.Forms.Cursor..ctor (type={System.Windows.Forms.Cursor},
resource="NWSE.cur") in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Cursor.cs:160
System.Windows.Forms.Cursors.get_SizeNWSE () in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Cursors.cs:311
System.Windows.Forms.SizeGrip..ctor (CapturedControl={LinuxTest.Form1,
Text: }) in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/SizeGrip.cs:47
System.Windows.Forms.ScrollableControl.CreateScrollbars () in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:1127
System.Windows.Forms.ScrollableControl..ctor () in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:318
System.Windows.Forms.ContainerControl..ctor () in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs
System.Windows.Forms.Form..ctor () in
/builddir/build/BUILD/mono-2.10.8/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
LinuxTest.Form1..ctor () in
/home/GTC/MyProject/LinuxTest/LinuxTest/Form1.cs LinuxTest.Program.Main ()
in /home/GTC/MyProject/LinuxTest/LinuxTest/Program.cs:18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20131017/7eb1c63e/attachment.html>


More information about the Mono-winforms-list mailing list