[Mono-bugs] [Bug 561970] Exception "collection was modified" in a ReadOnlyCollection
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 22 08:56:49 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=561970
http://bugzilla.novell.com/show_bug.cgi?id=561970#c8
Andrés G. Aragoneses <knocte at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
--- Comment #8 from Andrés G. Aragoneses <knocte at gmail.com> 2010-04-22 12:56:48 UTC ---
(In reply to comment #7)
> The stacktace shows the actual method been called, so it has to be from List
> since IList is an interface.
Right! I wasn't realising that ReadOnlyCollection keeps the original List<>
internally and uses it.
> You could fix it by either making a copy of the list, making sure no external
> modification happens or by building a modification resistant list.
Yep, fixed in http://article.gmane.org/gmane.comp.gnome.svn/307507/ (upstream
Banshee).
Thanks.
--
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