[Mono-devel-list] Is this normal behavior?

Philip Van Hoof spamfrommailing at freax.org
Fri Jul 18 08:50:39 EDT 2003


tb203:/home/domains/monodemo# cat test.cs
using System;

public class Test
{
        static public void Main ()
        {
                System.Net.Dns.GetHostByName ("localhost");
                Console.WriteLine ("Hello World");
        }
}

tb203:/home/domains/monodemo# mcs test.cs
Compilation succeeded
tb203:/home/domains/monodemo# mono test.exe

Unhandled Exception: System.NullReferenceException: A null value was 
found where an object instance was required in (unmanaged) 
/usr/lib/libmono.so.0(mono_class_from_name+0xbe) [0x400d24d8] in 
(unmanaged) /usr/lib/libmono.so.0 [0x400ab87b] in (unmanaged) 
/usr/lib/libmono.so.0 [0x400ad841] in (unmanaged) /usr/lib/libmono.so.0 
[0x400adf5d] in <0x00065> 00 System.Net.Dns:GetHostByName (string) in 
<0x0000f> 00 .Test:Main ()

tb203:/home/domains/monodemo#





More information about the Mono-devel-list mailing list