[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
http://bugzilla.novell.com/show_bug.cgi?id=561970
http://bugzilla.novell.com/show_bug.cgi?id=561970#c0
Summary: Exception "collection was modified" in a
ReadOnlyCollection
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')
at
System.Collections.Generic.List`1+Enumerator[Banshee.Sources.Source].MoveNext
() [0x00000]
at (wrapper static-rgctx-invoke)
System.Collections.Generic.List`1/Enumerator<Banshee.Sources.Source>:static_rgctx_invoke_bool__this__
()
at Banshee.Dap.Ipod.IpodSource.PerformSyncThreadCycle () [0x0025c] in
/home/knocte/Documentos/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs:605
at Banshee.Dap.Ipod.IpodSource.PerformSyncThread () [0x0001c] in
/home/knocte/Documentos/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs:543
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