[Mono-bugs] [Bug 485888] New: looping on SortedList.Keys produces KeyNotFoundException when looking up Value

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 17 03:58:30 EDT 2009


https://bugzilla.novell.com/show_bug.cgi?id=485888


           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: mono-bugs at lists.ximian.com
        ReportedBy: vidar314 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=279923)
 --> (https://bugzilla.novell.com/attachment.cgi?id=279923)
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("fåe", 5), also works.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list