[Mono-winforms-list] Error Running WinForms App -- Revisited

Freddie Witherden freddie.witherden at googlemail.com
Sat Feb 11 14:41:47 EST 2006


As some of you know a little while ago I was having trouble compiling
a very very basic windows form app and getting it to run on mono, once
of the suggestions was to ensure that my version of mono and
libgdiplus are the same and to update them. Well it has taken me a
long time but I have update them both to 1.1.13 (libgdiplus) and
1.1.13.1 for mono.

I tried the same app and got exactly the same error as before:

freddie at genware ~/Source-Ch02 $ mono HelloWorld-Win-Button.exe
Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
Keyboard: British keyboard layout
KDE colorscheme read

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:

in <0x4> (wrapper managed-to-native)
System.Drawing.GDIPlus:GdipDrawImageRectI
(intptr,intptr,int,int,int,int)
in <0xffffffa5> (wrapper managed-to-native)
System.Drawing.GDIPlus:GdipDrawImageRectI
(intptr,intptr,int,int,int,int)
in <0x3d> System.Drawing.Graphics:DrawImage
(System.Drawing.Image,int,int,int,int)
in <0xffffffdb> (wrapper remoting-invoke-with-check)
System.Drawing.Graphics:DrawImage
(System.Drawing.Image,int,int,int,int)
in <0x3b> System.Drawing.Bitmap:.ctor (System.Drawing.Image,int,int)
in <0xffffe65a> (wrapper remoting-invoke-with-check)
System.Drawing.Bitmap:.ctor (System.Drawing.Image,int,int)
in <0x3f2> System.Drawing.Icon:ToBitmap ()
in <0xfffffe1c> (wrapper remoting-invoke-with-check)
System.Drawing.Icon:ToBitmap ()
in <0x3c> System.Windows.Forms.XplatUIX11:SetIcon
(System.Windows.Forms.Hwnd,System.Drawing.Icon)
in <0x20> System.Windows.Forms.XplatUIX11:SetIcon (intptr,System.Drawing.Icon)
in <0x18> System.Windows.Forms.XplatUI:SetIcon (intptr,System.Drawing.Icon)
in <0x36> System.Windows.Forms.Form:CreateHandle ()
in <0x24> System.Windows.Forms.Control:get_Handle ()
in <0xffffdfcd> (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:get_Handle ()
in <0x30d> System.Windows.Forms.Control:get_CreateParams ()
in <0xd> System.Windows.Forms.ButtonBase:get_CreateParams ()
in <0xa> System.Windows.Forms.Button:get_CreateParams ()
in <0x48> System.Windows.Forms.Control:CreateHandle ()
in <0x38> System.Windows.Forms.Control:CreateControl ()
in <0x7b> System.Windows.Forms.Control:OnVisibleChanged (System.EventArgs)
in <0x38> System.Windows.Forms.ButtonBase:OnVisibleChanged (System.EventArgs)
in <0x182> System.Windows.Forms.Control:ChangeParent
(System.Windows.Forms.Control)
in <0xfffffdd1> (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:ChangeParent
(System.Windows.Forms.Control)
in <0x1a9> ControlCollection:Add (System.Windows.Forms.Control)
in <0xfd> WinForms.HelloWorld:.ctor ()
in <0xffffffd0> (wrapper remoting-invoke-with-check)
WinForms.HelloWorld:.ctor ()
in <0x18> WinForms.HelloWorld:Main ()
in <0x50b3aec9> (wrapper runtime-invoke)
System.Object:runtime_invoke_void (object,intptr,intptr,intptr)

Native stacktrace:

        mono(mono_handle_native_sigsegv+0xba) [0x814ecda]
        mono [0x813b649]
        /lib/libpthread.so.0 [0xb7e3b137]
        [0xffffe440]
Aborted

As before the code for it can be found here:
http://margaret2708.plus.com/HelloWorld-Win-Button.cs and am open to
suggestions.

--
Regards Freddie Witherden


More information about the Mono-winforms-list mailing list