[Mono-winforms-list] Problems to run windows app on mono for linux

baumhak baumhak at gmail.com
Tue Dec 16 06:26:56 EST 2008


Hi all!
This is my first message, sorry my poor english!
I´m trying to run an app on mono for linux with this command:

mono myapp.exe

but these errors appears:

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at System.Windows.Forms.ThemeWin32Classic.ButtonBase_DrawImage
(System.Windows.Forms.ButtonBase button, System.Drawing.Graphics dc)
[0x00000] 
  at System.Windows.Forms.ThemeWin32Classic.DrawButtonBase
(System.Drawing.Graphics dc, Rectangle clip_area,
System.Windows.Forms.ButtonBase button) [0x00000] 
  at System.Windows.Forms.ButtonBase.Draw
(System.Windows.Forms.PaintEventArgs pevent) [0x00000] 
  at System.Windows.Forms.ButtonBase.OnPaint
(System.Windows.Forms.PaintEventArgs pevent) [0x00000] 
  at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message&
m) [0x00000] 
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(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] 
  at System.Windows.Forms.XplatUIX11.DispatchMessage
(System.Windows.Forms.MSG& msg) [0x00000] 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
mainForm) [0x00000] 
  at SinfMGeral.frmMenuGeral.Main (System.String[] args) [0x00000] 

Someone can help?
Thanks a lot!
-- 
View this message in context: http://www.nabble.com/Problems-to-run-windows-app-on-mono-for-linux-tp21031393p21031393.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list