[Mono-list] Array "new" trouble

Dietmar Maurer dietmar@maurer-it.com
07 Mar 2002 10:40:14 +0100


I will fix that today.

On Wed, 2002-03-06 at 23:32, Martin Baulig wrote:
> 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
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-- 
--------------------------------------------------
Dietmar Maurer        Maurer IT Systemlösungen KEG
                                Technischer Leiter

Kohlgasse 51/9             Tel:  +43 1 545 449 711
A - 1050 WIEN              Fax:  +43 1 545 449 722
                         Mobil: +43 699 105 880 32
dietmar@maurer-it.com
http://www.maurer-it.com
---------------------------------------------------