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

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