A null reference or invalid value was found [GDI+ status: invalidParameter]

Jay Ge <[email protected]> Thu, 17 Oct 2013 10:31:35 +0800
Newsgroups gmane.comp.gnome.winforms
Message-ID <CAC7WD87TGenTWPzPspfJVBNNC0CfsXG5aFBeCnfFttPQEFkThw@mail.gmail.com>
--===============0696616221==
Content-Type: multipart/alternative; boundary=047d7b2e4d7cdcd37404e8e69dd8

--047d7b2e4d7cdcd37404e8e69dd8
Content-Type: text/plain; charset=ISO-8859-1

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

--047d7b2e4d7cdcd37404e8e69dd8
Content-Type: text/html; charset=ISO-8859-1

<div dir="ltr"><div><div>Hi,<br><br></div>thanks for reading my mail, it is very urgent, please help !!!!!!!!!!!!<br><br></div><div><div class=""><p>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?)</p>

<p>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=&quot;NWSE.cur&quot;) 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</p>

    </div><br></div></div>

--047d7b2e4d7cdcd37404e8e69dd8--

--===============0696616221==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

--===============0696616221==--