[Mono-vb] Mbas doesn't compile

Jochen Wezel jwezel@compumaster.de
Mon, 2 Feb 2004 12:33:24 +0100


Hi Rafael!

Maybe you already know that when compiling following lines with mbas, I
get the attached error:
Public Module Test
Public Sub Main()
        System.Console.WriteLine ("Hello world!")
End Sub
End Module

The error:
[root@redhat mono-dev]# mbas test.vb
System.TypeInitializationException: An exception was thrown by the type
initializer for Mono.MonoBASIC.Tokenizer ---> System.ArgumentException:
An invalid argument was specified.
in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1b)
[0x40080d2f]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x400a8b91]
in <0x00084> System.Globalization.CultureInfo:Construct
(int,string,bool)
in <0x00098> System.Globalization.CultureInfo:.ctor (string,bool)
in <0x00028> Mono.MonoBASIC.Tokenizer:.cctor ()
--- End of inner exception stack trace ---

in (unmanaged) Mono.MonoBASIC.Tokenizer:.ctor
(System.IO.TextReader,string,System.Collections.ArrayList)
in <0x0041c> Mono.MonoBASIC.Parser:parse ()
in <0x0005d> Mono.Languages.GenericParser:ParseFile (string)
in <0x0006f> Mono.Languages.GenericParser:Parse (string)

Compilation aborted
error BC5001: Program test.exe does not have an entry point defined
Compilation failed: 1 Error(s), 0 warnings



By the way: what about the automatic Imports? Does it work?

-Jochen