This is a migrated thread and some comments may be shown as answers.

Problem adding TabItem at runtime

3 Answers 100 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kjetil
Top achievements
Rank 1
Kjetil asked on 04 Feb 2008, 02:35 PM
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.

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 05 Feb 2008, 09:28 AM
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
0
Kjetil
Top achievements
Rank 1
answered on 14 Feb 2008, 08:09 AM
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...
0
Boyko Markov
Telerik team
answered on 14 Feb 2008, 03:12 PM
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
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Kjetil
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Kjetil
Top achievements
Rank 1
Share this question
or