Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

I originally observed this with 17.3.0.14, but can still reproduce with 17.3.0.33:

Page with Sub-pages, each containing a SfDataPager.

Leaving the main page without the sub-page ever having been displayed, a NullReferenceException is thrown.

Reason seems to be: SfDataPager.Dispose(bool isDisposing) does not check if ScrollViewer is null when calling Dispose on it


System.NullReferenceException

  HResult=0x80004003

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

  Source=Syncfusion.SfGrid.WPF

  StackTrace:

   at Syncfusion.UI.Xaml.Controls.DataPager.SfDataPager.Dispose(Boolean isDisposing)


> Syncfusion.SfGrid.WPF.dll!Syncfusion.UI.Xaml.Controls.DataPager.SfDataPager.Dispose(bool isDisposing) Unknown

  Syncfusion.SfGrid.WPF.dll!Syncfusion.UI.Xaml.Controls.DataPager.SfDataPager.Dispose() Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {System.Windows.Controls.StackPanel}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {System.Windows.Controls.Grid}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {System.Windows.Controls.Expander}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {System.Windows.Controls.Grid}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {System.Windows.Controls.DockPanel}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {System.Windows.Controls.Grid}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {BDal.Biotyper.UI.Application.Base.UserControls.Fast.FastRunDashboardControl}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {MahApps.Metro.Controls.MetroTabItem}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {MahApps.Metro.Controls.MetroTabControl}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.DisposeElement(object node = {BDal.Biotyper.UI.Application.Base.Pages.RunDashboardPage}) Unknown

  PresentationFramework.dll!System.Windows.Navigation.DisposeTreeQueueItem.Dispatch(object o) Unknown

  WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown

  WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler = null) Unknown

  WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() Unknown

  WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state) Unknown

  mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Line 980 C#

  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Line 928 C#

  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 917 C#

  WindowsBase.dll!MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown

  WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() Unknown

  WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() Unknown

  WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown

  WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd = 0x00380e46, int msg = 49246, System.IntPtr wParam = 0x00000000, System.IntPtr lParam = 0x00000000, ref bool handled = false) Unknown

  WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) Unknown

  WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown

  WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler = null) Unknown

  WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) Unknown

  WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd = 0x00380e46, int msg = 49246, System.IntPtr wParam = 0x00000000, System.IntPtr lParam = 0x00000000) Unknown

  [Native to Managed Transition]

  [Managed to Native Transition]

  WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame = {System.Windows.Threading.DispatcherFrame}) Unknown

  WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) Unknown

  PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) Unknown

  PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) Unknown

  PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) Unknown