Dear all,
I am trying to serialize/deserialize the docking layout to/from the external memory stream.
Having deserialized, the docking manager throws an exception as one of the docked windows is dragged to become floating. The exception appears when the procedure (serialize->deserialize->undock->dock) is repeated at least twice.
The sample code that illustrates the bug is attached.
Would be thankful for any feedback.
Vlad
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Tools.FloatingFormController.IsFloatOnly()
at Syncfusion.Windows.Forms.Tools.WhidbeyDragProvider.ProcessMouseUp(DockControllerBase controller, IDraggable ctrl, Point ptscreen)
at Syncfusion.Windows.Forms.Tools.FloatingFormController.HandleMouseUpImp(MouseButtons button, Point ptclient)
at Syncfusion.Windows.Forms.Tools.FloatingForm.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.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Syncfusion.Windows.Forms.Tools.FloatingForm.WndProc(Message& msg)
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)
Exception18.zip