[Mono-list] Array "new" trouble
Martin Baulig
martin@gnome.org
06 Mar 2002 23:32:31 +0100
Hi guys,
here's a short test program which crashes with mono and mint:
====
using System;
namespace Test {
public class Test {
public static int Main () {
Char[] c1 = new Char[1];
Char[,] c2 = new Char[1,1];
Console.WriteLine (c2);
return 0;
}
}
}
====
Unhandled exception System.NullReferenceException Segmentation fault.
#0: 0x00000 in System.Object::GetType ()
#1: 0x00001 call in System.Object::ToString ()
#2: 0x00002 callvirt in System.IO.TextWriter::Write ([0x80edf58] )
#3: 0x00006 callvirt in System.Console::WriteLine ([0x80edf58] )
#4: 0x00010 call in Test.Test::Main ()
Anyone an idea what's wrong ?
--
Martin Baulig
martin@gnome.org