« Return to Thread: Troubleshooting vb.net project in mono

Troubleshooting vb.net project in mono

by JDean :: Rate this Message:

Reply to Author | View in Thread

Hello Everyone,

  I've been developing small educational applications in vb.net (using studios 2003) and I just started trying to port them to mac and linux, so I'm pretty new to using mono.  I have a very basic winform application that I'm trying to run with mono 2.4; essentially a windows form with a button and a text box, when the button's clicked, the textbox says 'hello world'.  When running the .exe in mono, it crashes with the following error log:


Unhandled Exception: System.ArgumentException: GCHandle value cannot be zero
  at System.Runtime.InteropServices.GCHandle.op_Explicit (IntPtr value) [0x00000]
  at System.Windows.Forms.XplatUIWin32.GetMessage (System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, Boolean blocking) [0x00000]
  at System.Windows.Forms.XplatUIWin32.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax) [0x00000]
  at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax) [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 Helloworld.Form1.Main () [0x00000]


Again I'm fairly new to using mono, so any ideas on fixing these issues would be appreciated.  Please let me know if anyone would like to see the vb.net code.  

 « Return to Thread: Troubleshooting vb.net project in mono