[Mono-list] AW: AW: AW: [Mono-vb] Mbas doesn't compile

Jochen Wezel jwezel@compumaster.de
Wed, 4 Feb 2004 13:23:58 +0100


Well, I just updated to mono-0.30 with the RedHat 9 RPMs and therefore I =
also installed ICU and LibICU.

But now I always get errors compiling VB.NET apps:
Public Module Test
	Public Sub Main()
	        System.Console.WriteLine ("Hello world!")=20
	End Sub=20
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


Thanks for any help!
-Jochen

-----Urspr=FCngliche Nachricht-----
Von: B Anirban [mailto:banirban@novell.com]=20
Gesendet: Mittwoch, 4. Februar 2004 13:09
An: Jochen Wezel; mono-vb@lists.ximian.com
Betreff: Re: AW: AW: [Mono-vb] Mbas doesn't compile

Hi Jochen,
Installing LibICU should resolve this problem.
Try reinstalling it once again and compile your mcs code.
If the problem still persists, better post it on Mono list.
I have not installed .30 yet and not aware if there is any particular =
thing that needs to be addressed.
Anirban.

>>> "Jochen Wezel" <jwezel@compumaster.de> 04-Feb-04 4:47:04 PM >>>
Hi Arniban!

Well, today, I've updated to mono-0.30 and also had to install ICU =
before installing mono.
But the errors keeps :(

What do I have to do?

-Jochen


-----Urspr=FCngliche Nachricht-----
Von: mono-vb-admin@lists.ximian.com =
[mailto:mono-vb-admin@lists.ximian.com] Im Auftrag von Jochen Wezel
Gesendet: Montag, 2. Februar 2004 16:04
An: B Anirban; mono-vb@lists.ximian.com
Betreff: AW: AW: [Mono-vb] Mbas doesn't compile

Hi Anirban!

I've tested the same application in C# and mcs compiled successfully. =
That's why it's something mbas internal, I think.

-Jochen

-----Urspr=FCngliche Nachricht-----
Von: B Anirban [mailto:banirban@novell.com]
Gesendet: Montag, 2. Februar 2004 14:52
An: Jochen Wezel
Betreff: Re: AW: [Mono-vb] Mbas doesn't compile

Hi,
ICU is International Components for Unicode developed by IBM.
This takes care of different locales and culture.
Anirban.

>>> "Jochen Wezel" <jwezel@compumaster.de> 02-Feb-04 5:55:15 PM >>>
Hi Anirban,

What is ICU? I've installed mono 0.29 and also got the today's mcs out =
of CVS and compiled the complete mcs sources.

-Jochen

-----Urspr=FCngliche Nachricht-----
Von: B Anirban [mailto:banirban@novell.com]
Gesendet: Montag, 2. Februar 2004 12:42
An: Jochen Wezel; rafaelteixeirabr@hotmail.com; mono-vb@lists.ximian.com
Betreff: Re: [Mono-vb] Mbas doesn't compile

Hi Jochen,
Have you got ICU installed in your machine?
If not install it and compile mbas.
Then try compiling your program. It should work.
Regards.
Anirban.



>>> "Jochen Wezel" <jwezel@compumaster.de> 02-Feb-04 5:03:24 PM >>>
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
_______________________________________________
Mono-vb mailing list
Mono-vb@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-vb=20





_______________________________________________
Mono-vb mailing list
Mono-vb@lists.ximian.com=20
http://lists.ximian.com/mailman/listinfo/mono-vb=20


_______________________________________________
Mono-vb mailing list
Mono-vb@lists.ximian.com=20
http://lists.ximian.com/mailman/listinfo/mono-vb