This is a migrated thread and some comments may be shown as answers.

DockingManager NullReferenceException

1 Answer 75 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Srinivasa
Top achievements
Rank 1
Srinivasa asked on 30 Dec 2010, 05:31 AM
Hi,

On the launch of the splitter window if the user tries to resize  the sub window by dragging/moving the splitter, A NullReferenceException is thrown.  The following is the stack message.
------------------------------------------------------------------------------------------------------------------------------------

   System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.Docking.DockSite.CalcSplitterMargin(Splitter& splitter)
   at Telerik.WinControls.Docking.DockSite.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(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 Telerik.WinControls.Docking.DockSite.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)
------------------------------------------------------------------------------------------------------------------------------------

Note: sub windows are the DockPanels which are added to the DockingManager using SetDock.

Thanks for any help,
Srinivas.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 03 Jan 2011, 05:03 PM
Hi Srinivasa,

The DockingManager control is now obsolete and it is not actively developed and supported. It is replaced with the RadDock control. It has a better API, can dock directly controls and Forms objects, there are many improvements in the save/load layout functionality and it supports our new theming mechanism. More information regarding the RadDock control you can found in our online documentation.

I hope this helps. Should you have further questions, do not hesitate to ask.

All the best,
Julian Benkov
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
Dock
Asked by
Srinivasa
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or