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
295
Null reference exception - OnManagerSelectedTabItemChanged
posted

Dear Infragistics developers,

While switching to a specific tab, the following error is occuring. I did a little research and did not find any null objects. It seems like there is something wrong in the Infragistics code, could you please take a look at the stacktrace?

 at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnManagerSelectedTabItemChanged(Object sender, SelectedTabItemChangedEventArgs e)
   at Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem(ITabItem value)
   at AbstractScreenModeling.AbstractTabbed.showInitialTab()
   at AbstractScreenModeling.CanvasPanel.showInitialTabs()
   at AbstractScreenModeling.AbstractScreenModeler.loadScreenComponents()
   at Shared.WeakEvent.<>c__DisplayClass5_2.<Raise>b__1(Object __sender, EventArgs __e)

Thanks in advance.

Parents
No Data
Reply
  • 7535
    Offline posted

    Hello Jasper,

    Thank you for posting.

    I created a sample of UltraTabControl and was unable to reproduce the exception you're describing.
    I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.

    If the project does not work correctly, then the change in behavior is due to differences in your environment from mine and these differences can be anything from operating system version to the specific version of the Infragistics DLL versions used. My test was performed using version 18.1.20181.88. Please provide more details about your machine and version of the assemblies that you are referencing so that I can modify the environment that I am testing in to match yours.

    If the project does show the product feature working correctly, then more information will be needed to reproduce the issue in a sample that can be used for debugging. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing. This can be done by either making the sample that I provided more like your application or by isolating the behavior from your application by removing dependencies on any third parties or databases.

    Also while doing some research I fund this post discussing the same exception, and found the cause of the exception was to reusing the tab which has been disposed, check if this is not the case.


    Please let me know if you need further assistance.

    Sincerely,
    Divya Jain
    Associate Software Developer

    WindowsFormsApplication5.zip

Children
No Data