[Mono-bugs] [Bug 332534] New: IEnumerator. MoveNext for Dictionary throws an Exception when it is at the end of the collection .

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 10 08:58:11 EDT 2007


           Summary: IEnumerator.MoveNext for Dictionary throws an Exception
                    when it is at the end of the collection.
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: agallero at netscape.net
         QAContact: mono-bugs at ximian.com
          Found By: ---

Created an attachment (id=177369)
 --> (https://bugzilla.novell.com/attachment.cgi?id=177369)
A simple application showing the problem.

Description of Problem:
If you get an Enumerator for a Dictionary and reach the end of the collection,
MoveNext will throw an exception. This does not happen in .NET.

Steps to reproduce the problem:
Compile the attached application with gmcs

Actual Results:
Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
() [0x00000]
  at Program.Main (System.String[] args) [0x00000]

Expected Results:
no error.

How often does this happen? 

Additional Information:
It seems to happen only in dictionary, List is working fine.
While not critical, this bug does not allow for two different methods to check
in the same enumerator to know if they are at the end.

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