Bug 6498 - Collection Modified Exception while starting up MD
Summary: Collection Modified Exception while starting up MD
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Management ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: (C7)
Assignee: Bugzilla
Depends on:
Reported: 2012-08-09 19:52 UTC by Alan McGovern
Modified: 2016-01-20 07:15 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Alan McGovern 2012-08-09 19:52:04 UTC
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
   at MonoDevelop.Ide.Tasks.CommentTasksView.LoadSolutionContents(Solution sln)
   at MonoDevelop.Ide.Tasks.CommentTasksView.LoadWorkspaceItemContents(WorkspaceItem wob)
   at MonoDevelop.Ide.Tasks.CommentTasksView.CreateView()
   at MonoDevelop.Ide.Tasks.CommentTasksView.MonoDevelop.Ide.Tasks.ITaskListView.get_Content()
   at MonoDevelop.Ide.Gui.Pads.TaskListPad.OnContentSwitched(Object obj, EventArgs e)
   at MonoDevelop.Ide.Gui.Pads.TaskListPad.MonoDevelop.Ide.Gui.IPadContent.Initialize(IPadWindow window)
   at MonoDevelop.Ide.Codons.PadCodon.InitializePadContent(IPadWindow window)
   at MonoDevelop.Ide.Gui.DefaultWorkbench.CreatePadContent(Boolean force, PadCodon padCodon, PadWindow window, DockItem item)
   at MonoDevelop.Ide.Gui.DefaultWorkbench.<>c__DisplayClassc.<AddPad>b__8(Object , EventArgs )
   at MonoDevelop.Components.Docking.DockItem.SetupContent(Object ob, EventArgs args)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)
   at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
Comment 1 Mike Krüger 2016-01-20 07:15:51 UTC
This has been fixed over the years. 
(read: current 6.0 works)