[Mono-winforms-list] GDI+ bug

Pascal Fresnay pascalfresnay at free.fr
Fri Feb 17 17:15:31 EST 2006


Hi,
I attached a simple GDI+ apps that works well on .NET, but failed with
mono, both on Windows and Linux (with mono 1.1.13) with this error :

Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6
14:35:24]
Keyboard: French keyboard layout
Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so?), using
built-in colorscheme

Unhandled Exception: System.IndexOutOfRangeException: Array index is out
of range.
in <0x0008d> System.Drawing.Graphics:DrawBeziers (System.Drawing.Pen
pen, System.Drawing.Point[] points)
in (wrapper remoting-invoke-with-check)
System.Drawing.Graphics:DrawBeziers
(System.Drawing.Pen,System.Drawing.Point[])
in <0x002f2> Exemple6d.Form1:OnPaint
(System.Windows.Forms.PaintEventArgs e)
in <0x00498> System.Windows.Forms.Control:WndProc
(System.Windows.Forms.Message m)
in <0x0000d> System.Windows.Forms.ScrollableControl:WndProc
(System.Windows.Forms.Message m)
in <0x0000d> System.Windows.Forms.ContainerControl:WndProc
(System.Windows.Forms.Message m)
in <0x008dc> System.Windows.Forms.Form:WndProc
(System.Windows.Forms.Message m)
in <0x00014> System.Windows.Forms.Control+ControlNativeWindow:WndProc
(System.Windows.Forms.Message m)
in <0x0011e> System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg
msg, IntPtr wParam, IntPtr lParam)
in <0x00016> System.Windows.Forms.XplatUIX11:DispatchMessage
(System.Windows.Forms.MSG msg)
in <0x00015> System.Windows.Forms.XplatUI:DispatchMessage
(System.Windows.Forms.MSG msg)
in <0x0061d> System.Windows.Forms.Application:RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context)
in <0x00024> System.Windows.Forms.Application:Run
(System.Windows.Forms.Form mainForm)
in <0x0001f> Exemple6d.Form1:Main ()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdi.cs
Type: text/x-csharp
Size: 10435 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20060217/8e016ee8/gdi.bin


More information about the Mono-winforms-list mailing list