[Monodevelop-patches-list] r1589 - in trunk/MonoDevelop/src/Main/Base: . Gui/Pads/ClassScout
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu May 6 19:37:22 EDT 2004
Author: tberman
Date: 2004-05-06 19:37:22 -0400 (Thu, 06 May 2004)
New Revision: 1589
Modified:
trunk/MonoDevelop/src/Main/Base/ChangeLog
trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/ClassScout.cs
Log:
work around potential threading issue
Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-05-06 20:56:49 UTC (rev 1588)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-05-06 23:37:22 UTC (rev 1589)
@@ -1,3 +1,8 @@
+2004-05-06 Todd Berman <tberman at sevenl.net>
+
+ * Gui/Pads/ClassScout/ClassScout.cs: try catch to prevent potentialy
+ strange threading interactions.
+
2004-05-04 John Luke <jluke at cfl.rr.com>
* Makefile.am: make Services/StockIcons.cs regen properly
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/ClassScout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/ClassScout.cs 2004-05-06 20:56:49 UTC (rev 1588)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ClassScout/ClassScout.cs 2004-05-06 23:37:22 UTC (rev 1589)
@@ -167,11 +167,15 @@
bool addParseInfo ()
{
- if (add_e != null) {
- AddParseInformation (Nodes, add_e);
- add_e = null;
+ try {
+ if (add_e != null) {
+ AddParseInformation (Nodes, add_e);
+ add_e = null;
+ }
+ return false;
+ } catch {
+ OnProjectFilesChanged (null, null);
}
- return false;
}
ParseInformationEventArgs remove_e;
@@ -183,11 +187,15 @@
bool removeParseInfo ()
{
- if (remove_e != null) {
- RemoveParseInformation (Nodes, remove_e);
- remove_e = null;
+ try {
+ if (remove_e != null) {
+ RemoveParseInformation (Nodes, remove_e);
+ remove_e = null;
+ }
+ return false;
+ } catch {
+ OnProjectFilesChanged (null, null);
}
- return false;
}
private void OnNodeActivated(object sender, Gtk.RowActivatedArgs args)
More information about the Monodevelop-patches-list
mailing list