locked
System.NullReferenceException was unhandled RRS feed

  • Question

  • While running the project I am getting the below error.

    System.NullReferenceException was unhandled
      HResult=-2147467261
      Message=Object reference not set to an instance of an object.
      Source=PresentationFramework
      StackTrace:
           at System.Windows.Controls.Grid.SetFinalSize(DefinitionBase[] definitions, Double finalSize, Boolean columns)
           at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
           at System.Windows.Controls.ItemsPresenter.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
           at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
           at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at DevExpress.Xpf.Core.Native.DockPanelLayoutHelper.ArrangeDockPanelLayout(FrameworkElement parent, Size arrangeSize, Boolean lastChildFill, SkipLayout skipLayout, IsLastChild isLastChild)
           at DevExpress.Xpf.Bars.BarManager.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
           at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
           at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Documents.AdornerDecorator.ArrangeOverride(Size finalSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Window.ArrangeOverride(Size arrangeBounds)
           at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
           at System.Windows.UIElement.Arrange(Rect finalRect)
           at System.Windows.Interop.HwndSource.SetLayoutSize()
           at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
           at System.Windows.Window.SetRootVisualAndUpdateSTC()
           at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
           at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
           at System.Windows.Window.ShowHelper(Object booleanBox)
           at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
           at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
           at System.Windows.Threading.DispatcherOperation.InvokeImpl()
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Windows.Threading.DispatcherOperation.Invoke()
           at System.Windows.Threading.Dispatcher.ProcessQueue()
           at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
           at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
           at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
           at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
           at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
           at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
           at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
           at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
           at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
           at System.Windows.Application.RunInternal(Window window)
           at System.Windows.Application.Run()

    Can anybody help me on that?


    Nisheeth

    Tuesday, October 30, 2012 12:12 PM

Answers

  • You will really have to give more information than that. When debugging, do you see what variable is set to null? If it comes from deeper within a devexpress component, you should try asking on their support forum. Though there you will also need to give more info, include a code sample at least.
    • Marked as answer by NisheethTak Friday, November 2, 2012 7:13 AM
    Wednesday, October 31, 2012 10:46 AM
  • Hi Nisheeth,

    The information u have provided in insufficient to provide any help or solution.

    It would do a world of good if u can share a code snippet where u face such an issue.


    Regards, Parth Shah

    • Marked as answer by NisheethTak Friday, November 2, 2012 7:14 AM
    Wednesday, October 31, 2012 12:13 PM

All replies

  • You will really have to give more information than that. When debugging, do you see what variable is set to null? If it comes from deeper within a devexpress component, you should try asking on their support forum. Though there you will also need to give more info, include a code sample at least.
    • Marked as answer by NisheethTak Friday, November 2, 2012 7:13 AM
    Wednesday, October 31, 2012 10:46 AM
  • Hi Nisheeth,

    The information u have provided in insufficient to provide any help or solution.

    It would do a world of good if u can share a code snippet where u face such an issue.


    Regards, Parth Shah

    • Marked as answer by NisheethTak Friday, November 2, 2012 7:14 AM
    Wednesday, October 31, 2012 12:13 PM