Another persistence bug?

Topics related to the Krypton Docking.

Moderators: Phil Wright, Chris Porter

Another persistence bug?

Postby dbrank0 » Tue Sep 29, 2009 5:28 am

-run docking persistence demo
-do "save array 1"
-move properties1 to documents
-do "load array 1"

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'KryptonPage'.
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at ComponentFactory.Krypton.Toolkit.KryptonControlCollection.AddInternal(Control control)
at ComponentFactory.Krypton.Workspace.KryptonWorkspace.a(KryptonWorkspaceSequence A_0, Rectangle A_1, d A_2, b A_3, ViewLayoutContext A_4)
at ComponentFactory.Krypton.Workspace.KryptonWorkspace.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.PerformLayout()
at ComponentFactory.Krypton.Workspace.KryptonWorkspace.LoadLayoutFromXml(XmlReader xmlReader, KryptonPageCollection availablePages)
at ComponentFactory.Krypton.Docking.KryptonDockingSpace.LoadDockingElement(XmlReader xmlReader, KryptonPageCollection pages)
at ComponentFactory.Krypton.Docking.KryptonDockingSpace.LoadElementFromXml(XmlReader xmlReader, KryptonPageCollection pages)
at ComponentFactory.Krypton.Docking.KryptonDockingDockspace.LoadElementFromXml(XmlReader xmlReader, KryptonPageCollection pages)
at ComponentFactory.Krypton.Docking.KryptonDockingEdgeDocked.LoadChildDockingElement(XmlReader xmlReader, KryptonPageCollection pages, IDockingElement child)
at ComponentFactory.Krypton.Docking.DockingElement.LoadElementFromXml(XmlReader xmlReader, KryptonPageCollection pages)
at ComponentFactory.Krypton.Docking.DockingElement.LoadChildDockingElement(XmlReader xmlReader, KryptonPageCollection pages, IDockingElement child)
at ComponentFactory.Krypton.Docking.DockingElement.LoadElementFromXml(XmlReader xmlReader, KryptonPageCollection pages)
at ComponentFactory.Krypton.Docking.DockingElement.LoadChildDockingElement(XmlReader xmlReader, KryptonPageCollection pages, IDockingElement child)
at ComponentFactory.Krypton.Docking.DockingElement.LoadElementFromXml(XmlReader xmlReader, KryptonPageCollection pages)
at ComponentFactory.Krypton.Docking.DockingElement.LoadChildDockingElement(XmlReader xmlReader, KryptonPageCollection pages, IDockingElement child)
at ComponentFactory.Krypton.Docking.DockingElement.LoadElementFromXml(XmlReader xmlReader, KryptonPageCollection pages)
at ComponentFactory.Krypton.Docking.KryptonDockingManager.LoadConfigFromXml(XmlReader xmlReader)
at ComponentFactory.Krypton.Docking.KryptonDockingManager.LoadConfigFromStream(Stream stream)
at ComponentFactory.Krypton.Docking.KryptonDockingManager.LoadConfigFromArray(Byte[] buffer)
at DockingPersistence.Form1.buttonLoadArray1_Click(Object sender, EventArgs e)
at ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupButton.OnClick(EventHandler finishDelegate)
at ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupButton.PerformClick(EventHandler finishDelegate)
at a7.b(Object A_0, EventArgs A_1)
at eo.b(Object A_0, EventArgs A_1)
at gf.b(EventArgs A_0)
at gf.a(Control A_0, Point A_1, MouseButtons A_2)
at ComponentFactory.Krypton.Toolkit.ToolTipController.MouseUp(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseUp(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseUp(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseUp(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseUp(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewManager.MouseUp(MouseEventArgs e, Point rawPt)
at ComponentFactory.Krypton.Toolkit.ViewControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
dbrank0
 
Posts: 20
Joined: Tue Sep 29, 2009 5:14 am

Re: Another persistence bug?

Postby Phil Wright » Tue Sep 29, 2009 12:09 pm

Thanks for the bug report. I have reproduced the error and fixed it for the next release.

The issue is that the docking pages are not being removed from the workspace at the start of the load and they should have been. So the docking page ends up being disposed (because it was not correctly removed) and then when it is added back as part of the load it complains it is already disposed.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Another persistence bug?

Postby dbrank0 » Tue Sep 29, 2009 3:49 pm

Phil Wright wrote:Thanks for the bug report. I have reproduced the error and fixed it for the next release.


Thanks.

I was so much occupied with this bug I forgot to write any comment beside bare bug report in my post. :o
dbrank0
 
Posts: 20
Joined: Tue Sep 29, 2009 5:14 am


Return to Krypton Docking

Who is online

Users browsing this forum: No registered users and 0 guests