mail-archives/mono-bugs/2009-March/087125.html

149 строки
5.0 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:03:35 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 485888] New: looping on SortedList.Keys produces KeyNotFoundException when looking up Value
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20485888%5D%20New%3A%20looping%20on%20SortedList.Keys%20produces%0A%20KeyNotFoundException%20when%20looking%20up%20Value&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="087124.html">
<LINK REL="Next" HREF="087126.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 485888] New: looping on SortedList.Keys produces KeyNotFoundException when looking up Value</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20485888%5D%20New%3A%20looping%20on%20SortedList.Keys%20produces%0A%20KeyNotFoundException%20when%20looking%20up%20Value&In-Reply-To="
TITLE="[Mono-bugs] [Bug 485888] New: looping on SortedList.Keys produces KeyNotFoundException when looking up Value">bugzilla_noreply at novell.com
</A><BR>
<I>Tue Mar 17 03:58:30 EDT 2009</I>
<P><UL>
<LI>Previous message: <A HREF="087124.html">[Mono-bugs] [Bug 372525] XmlStringWriter fails for StringWriter without Encoding.
</A></li>
<LI>Next message: <A HREF="087126.html">[Mono-bugs] [Bug 485888] looping on SortedList.Keys produces KeyNotFoundException when looking up Value
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#87125">[ date ]</a>
<a href="thread.html#87125">[ thread ]</a>
<a href="subject.html#87125">[ subject ]</a>
<a href="author.html#87125">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=485888">https://bugzilla.novell.com/show_bug.cgi?id=485888</A>
Summary: looping on SortedList.Keys produces
KeyNotFoundException when looking up Value
Classification: Mono
Product: Mono: Runtime
Version: SVN
Platform: PC
OS/Version: Ubuntu
Status: NEW
Severity: Critical
Priority: P5 - None
Component: generics
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">vidar314 at gmail.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: ---
Created an attachment (id=279923)
--&gt; (<A HREF="https://bugzilla.novell.com/attachment.cgi?id=279923">https://bugzilla.novell.com/attachment.cgi?id=279923</A>)
Archive containing test program source, and text input file
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7)
Gecko/2009030516 Ubuntu/9.04 (jaunty) Firefox/3.0.7
My program adds about 1300 words from a text file as keys in a SortedList, with
an integer as value. When running a foreach loop to print out the values from
the list, a KeyNotFoundException is thrown.
Reproducible: Always
Steps to Reproduce:
1. Put both files from the attachment in the same dir
2. Compile the test program (gmcs test.cs)
3. Run it (mono test.exe)
Actual Results:
Program prints some of the values in the SortedList, then crashes, throwing a
KeyNotFoundException
Expected Results:
Program should print all values in SortedList and exit normally
The program runs without issues in VS2008 on Windows. Setting a norwegian
locale in Linux will also allow the program to run without crashing. Dispensing
with the input file and entering the key that causes the crash manually, e.g
words.Add(&quot;f&#229;e&quot;, 5), also works.
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="087124.html">[Mono-bugs] [Bug 372525] XmlStringWriter fails for StringWriter without Encoding.
</A></li>
<LI>Next message: <A HREF="087126.html">[Mono-bugs] [Bug 485888] looping on SortedList.Keys produces KeyNotFoundException when looking up Value
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#87125">[ date ]</a>
<a href="thread.html#87125">[ thread ]</a>
<a href="subject.html#87125">[ subject ]</a>
<a href="author.html#87125">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>