[Mono-dev] Failed to run .net 4.0 application with mono 3.2.3 on Mac 10.8.4
Rafael Teixeira
monoman at gmail.com
Thu Sep 19 12:38:26 UTC 2013
WinForms aren't actively developed in Mono anymore...
Rafael Teixeira
O..:.)oooo
On Thu, Sep 19, 2013 at 9:20 AM, Kun Ji <jikun.scu at gmail.com> wrote:
> Hi all,
>
> I met a crash when trying to start a .net 4.0 application compiled on
> Windows.
>
> The application named PAT and can be download here.
>
> When I tried $ mono PAT\ 3.exe
>
> it showed the following results:
>
> System.ArgumentException: A null reference or invalid value was found
> [GDI+ status: InvalidParameter]
> at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in
> <filename unknown>:0
> at System.Drawing.Drawing2D.LinearGradientBrush..ctor (Rectangle
> rect, Color color1, Color color2, LinearGradientMode
> linearGradientMode) [0x00000] in <filename unknown>:0
> at (wrapper remoting-invoke-with-check)
> System.Drawing.Drawing2D.LinearGradientBrush:.ctor
> (System.Drawing.Rectangle,System.Drawing.Color,System.
> Drawing.Color,System.Drawing.Drawing2D.LinearGradientMode)
> at System.Windows.Forms.ToolStripProfessionalRenderer.
> OnRenderToolStripPanelBackground
> (System.Windows.Forms.ToolStripPanelRenderEventArgs e) [0x00000] in
> <filename unknown>:0
> at System.Windows.Forms.ToolStripRenderer.DrawToolStripPanelBackground
> (System.Windows.Forms.ToolStripPanelRenderEventArgs e) [0x00000] in
> <filename unknown>:0
> at System.Windows.Forms.ToolStripPanel.OnPaintBackground
> (System.Windows.Forms.PaintEventArgs e) [0x00000] in <filename
> unknown>:0
> at System.Windows.Forms.Control.WmPaint
> (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
> at System.Windows.Forms.Control.WndProc
> (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
> at System.Windows.Forms.ScrollableControl.WndProc
> (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
> at System.Windows.Forms.ContainerControl.WndProc
> (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
> at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
> (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
> at System.Windows.Forms.Control+ControlNativeWindow.WndProc
> (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
> at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
> IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
>
> Unhandled Exception:
> System.ArgumentException: A null reference or invalid value was found
> [GDI+ status: InvalidParameter]
> at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in
> <filename unknown>:0
> at System.Drawing.Graphics.GdipMeasureString (IntPtr graphics,
> System.String text, System.Drawing.Font font,
> System.Drawing.RectangleF& layoutRect, IntPtr stringFormat) [0x00000]
> in <filename unknown>:0
> at System.Drawing.Graphics.MeasureString (System.String text,
> System.Drawing.Font font, Int32 width, System.Drawing.StringFormat
> format) [0x00000] in <filename unknown>:0
> at (wrapper remoting-invoke-with-check)
> System.Drawing.Graphics:MeasureString
> (string,System.Drawing.Font,int,System.Drawing.StringFormat)
> at System.Windows.Forms.TextRenderer.MeasureTextInternal
> (IDeviceContext dc, System.String text, System.Drawing.Font font, Size
> proposedSize, TextFormatFlags flags, Boolean useMeasureString)
> [0x00000] in <filename unknown>:0
> at System.Windows.Forms.TextRenderer.MeasureText (System.String
> text, System.Drawing.Font font, Size proposedSize, TextFormatFlags
> flags) [0x00000] in <filename unknown>:0
> at System.Windows.Forms.ToolStripItem.OnParentChanged
> (System.Windows.Forms.ToolStrip oldParent,
> System.Windows.Forms.ToolStrip newParent) [0x00000] in <filename
> unknown>:0
> at System.Windows.Forms.ToolStripItem.set_Parent
> (System.Windows.Forms.ToolStrip value) [0x00000] in <filename
> unknown>:0
> at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.ToolStripItem:set_Parent
> (System.Windows.Forms.ToolStrip)
> at System.Windows.Forms.ToolStripItemCollection.Remove
> (System.Windows.Forms.ToolStripItem value) [0x00000] in <filename
> unknown>:0
> at System.Windows.Forms.ToolStripItem.Dispose (Boolean disposing)
> [0x00000] in <filename unknown>:0
> at System.Windows.Forms.ToolStripDropDownItem.Dispose (Boolean
> disposing) [0x00000] in <filename unknown>:0
> at System.Windows.Forms.ToolStripMenuItem.Dispose (Boolean
> disposing) [0x00000] in <filename unknown>:0
> at System.ComponentModel.Component.Finalize () [0x00000] in
> <filename unknown>:0
>
>
> Can anyone give some hints on this issue?
>
> Thanks very much.
>
> --
> Best Regards,
> Ji Kun
>
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130919/447cd435/attachment-0001.html>
More information about the Mono-devel-list
mailing list