[Mono-list] mint bug
Paolo Molaro
lupus@debian.org
Thu, 27 Sep 2001 22:58:41 +0200
On 09/27/01 Petru Paler wrote:
> // Namespace Declaration
> using System;
>
> // Program start class
> class NamedWelcome
> {
> // Main begins program execution.
> public static void Main(string[] args)
> {
> // Write to console
> Console.WriteLine("Hello, {0}!", args[0]);
> Console.WriteLine("Welcome to the C# Station Tutorial!");
> }
> }
[...]
> When I run it with mint (from 26-Sep-01 snapshot) I get this:
>
> ppetru@shiva:~/projects/dotnet/tutorial$ mint Welcome.exe asd
> Unhandled exception System.NullReferenceException.
> #0: 0x00002 in System.IO.StreamWriter::Write ([(nil)] )
> #1: 0x00008 in System.IO.TextWriter::Write ([0x807a998] [0x807a898] )
> #2: 0x00007 in System.Console::WriteLine ([0x807a998] [0x807a898] )
> #3: 0x00008 in .NamedWelcome::Main ([0x8072740] )
String.Format() is not yet implemented in our corlib (and the stub
returns null). You get an exception and not a segfault: isn't that nice? :-)
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better