Posted 25 November 2018, 12:07 pm EST
Hello
I have a MDI with a toolbar with 8 buttons. When I open 5 winforms or more and then start to close the 5 windows open, the system raise an exception when I close the second or third.
Each Form inherits of C1RibbonForm, for example:
public partial class frmVentana1 : C1RibbonForm
If I dont use C1RibbonForm and inherits of Form, the application doesn’t raise error and run perfect, for example:
public partial class frmVentana1 : Form
Is clear that the error is with the C1RibbonForm!
I am using the last version for today: Version=4.0.20183.338
I think there are a problem with your Control!
The exception is:
System.ObjectDisposedException: ‘Cannot access a disposed object.’
Details:
at System.Drawing.Icon.get_Handle()
at System.Drawing.Icon.get_Size()
at System.Drawing.Icon.BmpFrame()
at System.Drawing.Icon.ToBitmap()
at System.Windows.Forms.MdiControlStrip.GetTargetWindowIcon()
at System.Windows.Forms.MdiControlStrip…ctor(IWin32Window target)
at System.Windows.Forms.Form.UpdateMdiControlStrip(Boolean maximized)
at System.Windows.Forms.Form.UpdateToolStrip()
at System.Windows.Forms.Form.OnMdiChildActivate(EventArgs e)
at C1.Win.C1Ribbon.C1RibbonForm.OnMdiChildActivate(EventArgs e)
at System.Windows.Forms.Form.ActivateMdiChildInternal(Form form)
at System.Windows.Forms.Form.WmMdiActivate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at C1.Win.C1Ribbon.C1RibbonForm.aa(Message& A_0)
at C1.Win.C1Ribbon.C1RibbonForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DefMDIChildProc(IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Form.DefWndProc(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at C1.Win.C1Ribbon.C1RibbonForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)