[Mono-dev] Compile Mono Solaris

Steven Jeffs steve at csbs.utah.edu
Tue Dec 18 16:40:47 EST 2007

Same result on ubuntu as well:
$ 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.ArgumentException: An element with the same 
key already exists in the dictionary.
(Char , Byte ) [0x00000]
  at Example.Main () [0x00000]
$ mono --version
Mono JIT compiler version 1.2.4 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Architecture:  x86
        Disabled:      none
$ uname -a
Linux <hostname> 2.6.22-14-server #1 SMP Sun Oct 14 23:34:23 GMT 2007 
i686 GNU/Linux

More information about the Mono-devel-list mailing list