[Mono-bugs] [Bug 561970] New: Exception "collection was modified" in a ReadOnlyCollection

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 9 15:12:17 EST 2009



           Summary: Exception "collection was modified" in a
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: 32bit
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: aaragoneses at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

While using Banshee in a somewhat slow machine, I got this exception:

[Warn  20:16:30.146] Caught an exception - Collection was modified;enumeration
operation may not execute. (in `mscorlib')
() [0x00000] 
  at (wrapper static-rgctx-invoke)
  at Banshee.Dap.Ipod.IpodSource.PerformSyncThreadCycle () [0x0025c] in
  at Banshee.Dap.Ipod.IpodSource.PerformSyncThread () [0x0001c] in

One could think that this is a Banshee's bug, a threading issue. However, how
can this happen in a foreach loop which iterates through a
ReadOnlyCollection<T>? The collection cannot be modified. I'm guessing it's a
mono bug then, not sure if belonging to runtime or class-libraries.

Configure bugmail: http://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