Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
575
Object Reference not Set UltraDockManager.FireEvent
posted

This may not be enough to go on but thought I might try anyway - a user of ours is getting a null reference exception with the dock manager after she closes a form in our app. The call stack doesn't have any of our code methods, it's all Infragistics. So far I have been unable to reproduce the issue. I have more info in an error report (screenshot, computer info etc.), should it be needed but I'd have to scrub it first. I don't have a sample app to reproduce the issue. Any ideas? Maybe a known issue?

 

Normal 0 false false false EN-US X-NONE X-NONE

Time of Error: 1/19/2012 8:40:10 AM

 

Exception outermost view of call stack

--------------------------------------------------------------------------------

Exception type: System.NullReferenceException

Source: Infragistics2.Win.UltraWinDock.v10.2

Source Assembly: Infragistics2.Win.UltraWinDock.v10.2.DLL

Source Assembly Version: 10.2.20102.2109

Source Type: Infragistics.Win.UltraWinDock.UltraDockManager

Source Method: Void FireEvent(Infragistics.Win.UltraWinDock.DockManagerEventIds, System.EventArgs)

Debug Build?: True

Message: Object reference not set to an instance of an object.

Stack Trace:

   at Infragistics.Win.UltraWinDock.UltraDockManager.FireEvent(DockManagerEventIds id, EventArgs e)

   at Infragistics.Win.UltraWinDock.UltraDockManager.NotifyPossibleActivePaneChange()

   at Infragistics.Win.UltraWinDock.UltraDockManager.ActivatePane(DockableControlPane pane, Boolean force)

   at Infragistics.Win.UltraWinDock.DockableControlPane.Activate()

   at Infragistics.Win.UltraWinDock.PaneCaptionButtonUIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement)

   at Infragistics.Win.UIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement)

   at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e)

   at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e)

   at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)

   at Infragistics.Win.UltraWinDock.DockControlBase.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 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)

Parents
No Data
Reply
  • 48586
    posted

    Hello , 

     

     I have reviewed your call-stack and it seems to me that there is some code, which has tried to access  UltraDockManager’s pane, during of closing of the form (while the from disposes its child components) . This explain NullReferenceException when closing of the form. Also as far as I can see from the call-stack, it seems that have some code on MouseClick event of the UltraDockManager (or you are using Creation Filter in order to enters some customisations in your UltraDockManager), which trying to access PaneCaptionButtonUIElement, so I think that this issue occurs in more specific scenario, not just when customer presses close button on the form.

     

    Please let me know if you have any further questions

Children