mail-archives/mono-list/2003-October/016235.html

128 строки
4.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] String.Join NullReferenceException
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:e_osorio%40yahoo.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="016233.html">
<LINK REL="Next" HREF="016237.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] String.Join NullReferenceException
</H1>
<B>Eduardo Osorio Armenta
</B>
<A HREF="mailto:e_osorio%40yahoo.com"
TITLE="[Mono-list] String.Join NullReferenceException">e_osorio@yahoo.com
</A><BR>
<I>Thu, 9 Oct 2003 17:46:17 -0700 (PDT)</I>
<P><UL>
<LI> Previous message: <A HREF="016233.html">[Mono-list] String.Join NullReferenceException
</A></li>
<LI> Next message: <A HREF="016237.html">[Mono-list] String.Join NullReferenceException
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16235">[ date ]</a>
<a href="thread.html#16235">[ thread ]</a>
<a href="subject.html#16235">[ subject ]</a>
<a href="author.html#16235">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>OK net 1.1
E:\eduardo\prog\mono\c#\test&gt;csc test.cs
Versión del compilador de Microsoft (R) Visual C#
.NET7.10.3052.4
para Microsoft (R) .NET Framework versión 1.1.4322
(C) Microsoft Microsoft Corporation 2001-2002.
Reservados todos los derechos.
E:\eduardo\prog\mono\c#\test&gt;test
hello world!
--- Rodolfo Campero &lt;<A HREF="mailto:rodolfocampero@hotmail.com">rodolfocampero@hotmail.com</A>&gt;
wrote:
&gt;<i> Hi,
</I>&gt;<i> I've found something that maybe is a bug. When I run
</I>&gt;<i> the following program:
</I>&gt;<i>
</I>&gt;<i> using System;
</I>&gt;<i> namespace Test {
</I>&gt;<i> public class TestJoin {
</I>&gt;<i> public static void Main(string[] args) {
</I>&gt;<i> string[] array = new string[] {&quot;hello &quot;, null,
</I>&gt;<i> &quot;world!&quot;};
</I>&gt;<i> Console.WriteLine(String.Join(String.Empty,
</I>&gt;<i> array));
</I>&gt;<i> }
</I>&gt;<i> }
</I>&gt;<i> }
</I>&gt;<i>
</I>&gt;<i> I get the following error:
</I>&gt;<i>
</I>&gt;<i> Unhandled Exception: System.NullReferenceException:
</I>&gt;<i> A null value was found
</I>&gt;<i> where an object instance was required
</I>&gt;<i>
</I>&gt;<i> I've tested the same program at work, with
</I>&gt;<i> Microsoft's SDK (1.0), and it
</I>&gt;<i> prints
</I>&gt;<i> the well-known &quot;hello world!&quot; message.
</I>&gt;<i>
</I>&gt;<i> Is this a bug? can someone corroborate it under mono
</I>&gt;<i> and under .NET 1.1? If
</I>&gt;<i> that's the case, I'll be happy to write a test case
</I>&gt;<i> (please indicate me
</I>&gt;<i> where)
</I>&gt;<i> and fill a form in bugzilla.
</I>&gt;<i>
</I>&gt;<i> I tried to follow the implementation in String.cs,
</I>&gt;<i> but the actual
</I>&gt;<i> implementation
</I>&gt;<i> is somewhere else; so I guess the fix may require
</I>&gt;<i> more knowledge than I
</I>&gt;<i> have...
</I>&gt;<i>
</I>&gt;<i> Thanks,
</I>&gt;<i>
</I>&gt;<i> Rodolfo
</I>&gt;<i>
</I>&gt;<i>
</I>_________________________________________________________________
&gt;<i> MSN 8 helps eliminate e-mail viruses. Get 2 months
</I>&gt;<i> FREE*.
</I>&gt;<i> <A HREF="http://join.msn.com/?page=features/virus">http://join.msn.com/?page=features/virus</A>
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
<A HREF="http://shopping.yahoo.com">http://shopping.yahoo.com</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="016233.html">[Mono-list] String.Join NullReferenceException
</A></li>
<LI> Next message: <A HREF="016237.html">[Mono-list] String.Join NullReferenceException
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16235">[ date ]</a>
<a href="thread.html#16235">[ thread ]</a>
<a href="subject.html#16235">[ subject ]</a>
<a href="author.html#16235">[ author ]</a>
</LI>
</UL>
</body></html>