[Monodevelop-patches-list] r1593 - in trunk/MonoDevelop/src/Main/Base: . Gui/Pads/ClassScout
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri May 7 17:55:36 EDT 2004
Author: tberman
Date: 2004-05-07 17:55:35 -0400 (Fri, 07 May 2004)
New Revision: 1593
Modified:
trunk/MonoDevelop/src/Main/Base/ChangeLog
trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/ClassScout.cs
Log:
fixing enumerator issue
Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-05-07 05:15:07 UTC (rev 1592)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-05-07 21:55:35 UTC (rev 1593)
@@ -1,3 +1,7 @@
+2004-05-07 Todd Berman <tberman at sevenl.net>
+
+ * Gui/Pads/ClassScout/ClassScout.cs: adding a lock.
+
2004-05-06 Todd Berman <tberman at sevenl.net>
* Gui/Pads/ClassScout/ClassScout.cs: try catch to prevent potentialy
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/ClassScout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/ClassScout.cs 2004-05-07 05:15:07 UTC (rev 1592)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/ClassScout.cs 2004-05-07 21:55:35 UTC (rev 1593)
@@ -333,14 +333,16 @@
//combineNode.SelectedImageIndex = combineNode.ImageIndex = classBrowserIconService.CombineIndex;
combineNode.Image = Stock.CombineIcon;
- foreach (CombineEntry entry in combine.Entries) {
- if (entry is ProjectCombineEntry) {
- Populate(((ProjectCombineEntry)entry).Project, combineNode.Nodes);
- } else {
- Populate(((CombineCombineEntry)entry).Combine, combineNode.Nodes);
+ lock (combine.Entries) {
+ foreach (CombineEntry entry in combine.Entries) {
+ if (entry is ProjectCombineEntry) {
+ Populate(((ProjectCombineEntry)entry).Project, combineNode.Nodes);
+ } else {
+ Populate(((CombineCombineEntry)entry).Combine, combineNode.Nodes);
+ }
}
}
-
+
nodes.Add(combineNode);
}
More information about the Monodevelop-patches-list
mailing list