[Mono-dev] Compile Mono Solaris

Steven Jeffs steve at csbs.utah.edu
Thu Dec 13 12:29:33 EST 2007


I can now generate the exception I'm getting with dekihost with just a 
few lines of code.  Should this be a bug submission?

$ cat test.cs
using System;
using System.Collections.Generic;
using System.Text;

public class Example
{
    public static void Main()
    {
        Dictionary<char, byte> widths = new Dictionary<char, byte>();

        widths.Add((char)0x10, (byte)0x20 );
        widths.Add((char)0x10, (byte)0x30 );
    }
}
$ gmcs test.cs
$ mono test.exe

Unhandled Exception: System.NullReferenceException: Object reference not 
set to an instance of an object
  at 
System.Collections.Generic.GenericEqualityComparer`1[System.Char].Equals 
(Char , Char ) [0x00000]
  at 
System.Collections.Generic.Dictionary`2[System.Char,System.Byte].Add 
(Char , Byte ) [0x00000]
  at Example.Main () [0x00000]
$ mono --version
Mono JIT compiler version 1.2.5.2 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Architecture:  sparc
        Disabled:      none
$ uname -a
SunOS <hostname> 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V240




More information about the Mono-devel-list mailing list