Hi,

I tried compiling the attached VB.NET file (a simple one line hello world application) 
using Mono 0.26 mbas on Redhat 9. It gives the following error:

Unhandled Exception: System.ArgumentNullException: Argument cannot be null
Parameter name: null key
in <0x00076> 00 System.Collections.Hashtable:Find (object)
in <0x0001b> 00 System.Collections.Hashtable:GetImpl (object)
in <0x00014> 00 System.Collections.Hashtable:get_Item (object)
in <0x0004d> 00 Mono.CSharp.TypeManager:LookupType (string)
in <0x00160> 00 Mono.Languages.Driver:IsSWFApp ()
in <0x0007c> 00 Mono.Languages.Driver:FixEntryPoint ()
in <0x0005b> 00 Mono.Languages.Driver:GenerateAssembly ()
in <0x0005f> 00 Mono.Languages.Driver:CompileAll ()
in <0x00045> 00 Mono.Languages.Driver:MainDriver (string[])
in <0x0003d> 00 Mono.Languages.Driver:Main (string[])

I can compile this file without any problem using Microsoft .NET vbc.exe on Windows XP.

Should I file a bug, or I am doing something wrong? Can anyone try compiling test.vb 
which is attached and see if they get any errors?

Akhilesh Agarwal

module test

        sub main()
                System.Console.WriteLine("Hello World!")
        end sub

end module

Reply via email to