Author: jpobst
Date: 2007-06-21 15:54:58 -0400 (Thu, 21 Jun 2007)
New Revision: 80514
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripControlHost.cs
Log:
2007-06-21 Jonathan Pobst <[EMAIL PROTECTED]>
* ToolStripControlHost.cs: If our hosted control never got created,
don't try to dispose it. [Fixes bug #81909]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-06-21 19:41:10 UTC (rev 80513)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-06-21 19:54:58 UTC (rev 80514)
@@ -1,5 +1,10 @@
2007-06-21 Jonathan Pobst <[EMAIL PROTECTED]>
+ * ToolStripControlHost.cs: If our hosted control never got created,
+ don't try to dispose it. [Fixes bug #81909]
+
+2007-06-21 Jonathan Pobst <[EMAIL PROTECTED]>
+
* TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
2007-06-21 Jonathan Pobst <[EMAIL PROTECTED]>
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripControlHost.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripControlHost.cs
2007-06-21 19:41:10 UTC (rev 80513)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripControlHost.cs
2007-06-21 19:54:58 UTC (rev 80514)
@@ -276,8 +276,8 @@
protected override void Dispose (bool disposing)
{
base.Dispose (disposing);
-
- if (!control.IsDisposed)
+
+ if (control.Created && !control.IsDisposed)
control.Dispose ();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches