[Mono-dev] System.Windows.Forms and mbas

Thomas Cleenewerck tcleenewerck at gmail.com
Sat Sep 3 01:59:39 EDT 2005


I'm trying to get the following example working on winxp with mono-1.0.5:
 
imports System
imports System.Windows.Forms

Module Hello

sub Main()
dim f as new System.Windows.Forms.Form()
dim c as new Collection()
Console.WriteLine("Hello World vb.mono")
end sub 

end module
 I'm compiling the program using
 mbas /r:System.Windows.Forms helloworld.vb
 Upon execution I get the following error:
 Unhandled Exception: System.ArgumentException: Invalid Parameter. A null 
referen
ce or invalid value was found.
in <0x00073> System.Drawing.GDIPlus:CheckStatus (System.Drawing.Status)
in <0x00182> System.Drawing.Font:FromHfont (intptr)
in <0x00015> System.Windows.Forms.Control:get_DefaultFont ()
in <0x001af> System.Windows.Forms.Control:.ctor ()
in <0x00010> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x00012> System.Windows.Forms.ContainerControl:.ctor ()
in <0x00016> System.Windows.Forms.Form:.ctor ()
in <0x0004c> (wrapper remoting-invoke-with-check) 
System.Windows.Forms.Form:.cto
r ()
in <0x00028> Hello:Main ()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050903/aa1eb2e0/attachment.html 


More information about the Mono-devel-list mailing list