Here’s an error message that came up while trying to view a pull-down menu in grasshopper:
System.InvalidOperationException: Object of type System.Windows.Forms.FormHelper was not cleaned up. Expected an NSColor.
at System.Drawing.ConversionHelpers.ToNSColor (MonoMac.CoreGraphics.CGColor) <0x000fb>
at System.Drawing.ConversionHelpers.ToColor (MonoMac.AppKit.NSColor) <0x00130>
at System.Windows.Forms.Control.get_DefaultBackColor () <0x00029>
at System.Windows.Forms.Form.get_BackColor () <0x0004d>
at System.Windows.Forms.Control.get_BackColor () <0x00088>
at System.Windows.Forms.Control.get_BackColor () <0x00088>
at System.Windows.Forms.Control.PaintControlBackground (System.Windows.Forms.PaintEventArgs) <0x001a2>
at System.Windows.Forms.Control.OnPaintBackground (System.Windows.Forms.PaintEventArgs) <0x00018>
at Grasshopper.GUI.GH_Label.OnPaintBackground (System.Windows.Forms.PaintEventArgs) <0x0005c>
at System.Windows.Forms.Control.Draw (System.Windows.Forms.PaintEventArgs) <0x0001b>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.Draw (System.Windows.Forms.PaintEventArgs) <0x0007d>
at System.Windows.Forms.TextFieldView.DrawRect (MonoMac.CoreGraphics.CGRect) <0x0025c>
at (wrapper dynamic-method) object.[System.Windows.Forms.TextFieldView.Void DrawRect(MonoMac.CoreGraphics.CGRect)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.CoreGraphics.CGRect) <0x00078>
at (wrapper native-to-managed) object.[System.Windows.Forms.TextFieldView.Void DrawRect(MonoMac.CoreGraphics.CGRect)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.CoreGraphics.CGRect) <0x00151>
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_CGRect_bool (intptr,intptr,MonoMac.CoreGraphics.CGRect,bool) <0x0009a>
at MonoMac.AppKit.NSWindow.SetFrame (MonoMac.CoreGraphics.CGRect,bool) <0x000c5>
at System.Windows.Forms.Form.UpdateBounds (MonoMac.AppKit.NSView) <0x0013f>
at System.Windows.Forms.Control.SetBoundsInternal (int,int,int,int) <0x000a4>
at System.Windows.Forms.Control.SetBounds (int,int,int,int,System.Windows.Forms.BoundsSpecified) <0x000bf>
at System.Windows.Forms.Control.set_Height (int) <0x00065>
at Grasshopper.GUI.Ribbon.GH_RibbonDropdown.GH_RibbonPanelDropdown_Load (object,System.EventArgs) <0x00874>
at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x0007f>
at System.Windows.Forms.Form.CallLoad () <0x00023>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.CallLoad () <0x0006c>
at System.Windows.Forms.FormHelper.CallLoad () <0x00030>
at System.Windows.Forms.Form.InternalShow () <0x002d0>
at System.Windows.Forms.Control.Show () <0x00013>
at System.Windows.Forms.Form.Show (System.Windows.Forms.IWin32Window) <0x00443>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.Show (System.Windows.Forms.IWin32Window) <0x0007d>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.DisplayDropdown (bool) <0x002e7>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.DisplayDropdown () <0x00019>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.MouseDown (Grasshopper.GUI.Ribbon.GH_Ribbon,Grasshopper.GUI.Ribbon.GH_RibbonMouseEventArgs) <0x000bd>
at Grasshopper.GUI.Ribbon.GH_RibbonTab.MouseDown (Grasshopper.GUI.Ribbon.GH_Ribbon,Grasshopper.GUI.Ribbon.GH_RibbonMouseEventArgs) <0x000bf>
at Grasshopper.GUI.Ribbon.GH_Ribbon.GH_RibbonControl_MouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0019a>
at (wrapper delegate-invoke) .invoke_void_object_MouseEventArgs (object,System.Windows.Forms.MouseEventArgs) <0x000ac>
at System.Windows.Forms.Control.OnMouseDown (System.Windows.Forms.MouseEventArgs) <0x0007f>
at System.Windows.Forms.UserControl.OnMouseDown (System.Windows.Forms.MouseEventArgs) <0x00019>
at System.Windows.Forms.Control.FireMouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0001b>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.FireMouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0008f>
at System.Windows.Forms.ScrollViewHelper.MouseDown (MonoMac.AppKit.NSEvent) <0x0009e>
at (wrapper dynamic-method) object.[System.Windows.Forms.ScrollViewHelper.Void MouseDown(MonoMac.AppKit.NSEvent)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSEvent) <0x00050>
at (wrapper native-to-managed) object.[System.Windows.Forms.ScrollViewHelper.Void MouseDown(MonoMac.AppKit.NSEvent)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSEvent) <0x00197>
StackTrace:
at System.Drawing.ConversionHelpers.ToNSColor (MonoMac.CoreGraphics.CGColor) <0x000fb>
at System.Drawing.ConversionHelpers.ToColor (MonoMac.AppKit.NSColor) <0x00130>
at System.Windows.Forms.Control.get_DefaultBackColor () <0x00029>
at System.Windows.Forms.Form.get_BackColor () <0x0004d>
at System.Windows.Forms.Control.get_BackColor () <0x00088>
at System.Windows.Forms.Control.get_BackColor () <0x00088>
at System.Windows.Forms.Control.PaintControlBackground (System.Windows.Forms.PaintEventArgs) <0x001a2>
at System.Windows.Forms.Control.OnPaintBackground (System.Windows.Forms.PaintEventArgs) <0x00018>
at Grasshopper.GUI.GH_Label.OnPaintBackground (System.Windows.Forms.PaintEventArgs) <0x0005c>
at System.Windows.Forms.Control.Draw (System.Windows.Forms.PaintEventArgs) <0x0001b>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.Draw (System.Windows.Forms.PaintEventArgs) <0x0007d>
at System.Windows.Forms.TextFieldView.DrawRect (MonoMac.CoreGraphics.CGRect) <0x0025c>
at (wrapper dynamic-method) object.[System.Windows.Forms.TextFieldView.Void DrawRect(MonoMac.CoreGraphics.CGRect)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.CoreGraphics.CGRect) <0x00078>
at (wrapper native-to-managed) object.[System.Windows.Forms.TextFieldView.Void DrawRect(MonoMac.CoreGraphics.CGRect)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.CoreGraphics.CGRect) <0x00151>
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_CGRect_bool (intptr,intptr,MonoMac.CoreGraphics.CGRect,bool) <0x0009a>
at MonoMac.AppKit.NSWindow.SetFrame (MonoMac.CoreGraphics.CGRect,bool) <0x000c5>
at System.Windows.Forms.Form.UpdateBounds (MonoMac.AppKit.NSView) <0x0013f>
at System.Windows.Forms.Control.SetBoundsInternal (int,int,int,int) <0x000a4>
at System.Windows.Forms.Control.SetBounds (int,int,int,int,System.Windows.Forms.BoundsSpecified) <0x000bf>
at System.Windows.Forms.Control.set_Height (int) <0x00065>
at Grasshopper.GUI.Ribbon.GH_RibbonDropdown.GH_RibbonPanelDropdown_Load (object,System.EventArgs) <0x00874>
at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x0007f>
at System.Windows.Forms.Form.CallLoad () <0x00023>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.CallLoad () <0x0006c>
at System.Windows.Forms.FormHelper.CallLoad () <0x00030>
at System.Windows.Forms.Form.InternalShow () <0x002d0>
at System.Windows.Forms.Control.Show () <0x00013>
at System.Windows.Forms.Form.Show (System.Windows.Forms.IWin32Window) <0x00443>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.Show (System.Windows.Forms.IWin32Window) <0x0007d>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.DisplayDropdown (bool) <0x002e7>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.DisplayDropdown () <0x00019>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.MouseDown (Grasshopper.GUI.Ribbon.GH_Ribbon,Grasshopper.GUI.Ribbon.GH_RibbonMouseEventArgs) <0x000bd>
at Grasshopper.GUI.Ribbon.GH_RibbonTab.MouseDown (Grasshopper.GUI.Ribbon.GH_Ribbon,Grasshopper.GUI.Ribbon.GH_RibbonMouseEventArgs) <0x000bf>
at Grasshopper.GUI.Ribbon.GH_Ribbon.GH_RibbonControl_MouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0019a>
at (wrapper delegate-invoke) .invoke_void_object_MouseEventArgs (object,System.Windows.Forms.MouseEventArgs) <0x000ac>
at System.Windows.Forms.Control.OnMouseDown (System.Windows.Forms.MouseEventArgs) <0x0007f>
at System.Windows.Forms.UserControl.OnMouseDown (System.Windows.Forms.MouseEventArgs) <0x00019>
at System.Windows.Forms.Control.FireMouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0001b>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.FireMouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0008f>
at System.Windows.Forms.ScrollViewHelper.MouseDown (MonoMac.AppKit.NSEvent) <0x0009e>
at (wrapper dynamic-method) object.[System.Windows.Forms.ScrollViewHelper.Void MouseDown(MonoMac.AppKit.NSEvent)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSEvent) <0x00050>
at (wrapper native-to-managed) object.[System.Windows.Forms.ScrollViewHelper.Void MouseDown(MonoMac.AppKit.NSEvent)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSEvent) <0x00197>