[Mono-bugs] [Bug 80758][Wis] Changed - [WIN] DrawIcon does not work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 8 09:55:16 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by joncham at gmail.com.


--- shadow/80758	2007-02-08 09:39:24.000000000 -0500
+++ shadow/80758.tmp.12780	2007-02-08 09:55:16.000000000 -0500
@@ -58,6 +58,49 @@
 			Application.Run (new MainForm ());
+------- Additional Comments From joncham at gmail.com  2007-02-08 09:55 -------
+I can reproduce on svn head on windows:
+System.ArgumentException: Invalid Parameter. A null reference or
+invalid value was found.
+  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
+  at System.Drawing.Image.InitFromStream (System.IO.Stream stream,
+Boolean keepAlive) [0x00000]
+  at System.Drawing.Bitmap..ctor (System.IO.Stream stream, Boolean
+useIcm) [0x00000]
+  at System.Drawing.Bitmap..ctor (System.IO.Stream stream) [0x00000]
+  at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor
+  at System.Drawing.Image.FromStream (System.IO.Stream stream) [0x00000]
+  at System.Drawing.Icon.GetInternalBitmap () [0x00000]
+  at (wrapper remoting-invoke-with-check)
+System.Drawing.Icon:GetInternalBitmap ()
+  at System.Drawing.Graphics.DrawIcon (System.Drawing.Icon icon, Int32
+x, Int32 y) [0x00000]
+  at (wrapper remoting-invoke-with-check)
+System.Drawing.Graphics:DrawIcon (System.Drawing.Icon,int,int)
+  at centered.MainForm.MainForm_Paint (System.Object sender,
+System.Windows.Forms.PaintEventArgs e) [0x00000]
+  at (wrapper delegate-invoke)
+  at System.Windows.Forms.Control.OnPaint
+(System.Windows.Forms.PaintEventArgs e) [0x00000]
+  at System.Windows.Forms.Form.OnPaint
+(System.Windows.Forms.PaintEventArgs pevent) [0x00000]
+  at System.Windows.Forms.Control.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+  at System.Windows.Forms.ScrollableControl.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+  at System.Windows.Forms.ContainerControl.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&
+m) [0x00000]
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x00000]

More information about the mono-bugs mailing list