Problem adding TabItem at runtime

4 posts, 0 answers
  1. Kjetil
    Kjetil avatar
    2 posts
    Member since:
    Feb 2008

    Posted 04 Feb 2008 Link to this post

    I have a problem which seems to be related to adding a new TabItem to a TabStrip at runtime.
    The problem doesn't occur on my computer, or on any other computers I've tested on (which have Visual Studio installed). But when I try running my application on a computer without VS, and without Telerik installed I get a crash:

    EventType : clr20r3     P1 : calloperator.exe     P2 : 1.0.0.0     P3 : 47a72344
    P4 : system.windows.forms     P5 : 2.0.0.0     P6 : 4333aefa     P7 : 1508    
    P8 : 12f     P9 : system.arithmeticexception

    I've limited the crash to this add statement below:

    TabItem tab = new TabItem(channel);
    tab.Name = channel;
    radTabIRCChatStrip.Items.Add(tab);

    Do you have any idea what this may be?

    PS I have other TabStrips in the same application, but they are not being created at runtime, and they seem to be working fine.
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 05 Feb 2008 Link to this post

    Hello Kjetil,

    I wasn't able to reproduce the behavior you describe. What I've done to test it was:
    1. Run a clean copy of winXP
    2. Installed .NET Framework 2.0
    3. Created an application with RadTabStrip having one tabItem and an instance of RadButton on the container form.
    4. Added one TabItem on Form's Load event and one more for each button click.
    5. Moved Telerik.WinControls.dll, Telerik.WinControls.UI.dll and TelerikCommon.dll to my application.
    6. When I run it there is no error message and everything work as it is expected.

    Could you please send me the sample project which is demonstrating the fault behavior of RadTabStrip?

    I'm looking forward to your reply.

    Regards,

    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Kjetil
    Kjetil avatar
    2 posts
    Member since:
    Feb 2008

    Posted 14 Feb 2008 Link to this post

    Sorry for my late reply. I've been busy on other projects.

    I've tried recreating the error, without success. And actually, all of a sudden, seemingly for no reason at all, this whole crash seemed to just go away.

    Now everything is working as it was supposed to, without me even changing any code related to this issue. I'm happy that it works, but I've no idea why...
  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 14 Feb 2008 Link to this post

    Hi Kjetil,

    Thank you for contacting me. I'm happy to hear that everything works fine now.

    Please write me back if you need any further information about RadTabStrip.

    Regards,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top