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

Index out of range exception

7 Answers 70 Views
AutocompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Doug
Top achievements
Rank 1
Doug asked on 25 Sep 2013, 10:13 AM
I'm getting this exception, it is kind of hard to reproduce but ill try to explain.

I could'nt reproduce this on an emulator, so i suggesst using a phone. type in some string in the autocomplete box and delete it fast, it doesn't always crash so u may repeat this a few times.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

   at System.Text.StringBuilder.Remove(Int32 startIndex, Int32 length)
   at Telerik.Windows.Controls.AutoCompleteProvider.Delete(Int32 start, Int32 selectionLength)
   at Telerik.Windows.Controls.RadAutoCompleteBox.RefreshSuggestionOnTextDelete()
   at Telerik.Windows.Controls.RadAutoCompleteBox.OnKeyDown(KeyEventArgs e)
   at System.Windows.Controls.Control.OnKeyDown(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

Best Regards Doug

7 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 25 Sep 2013, 10:18 AM
Hello Doug,

Thanks for writing and for reporting this.

I would like to inform you that we have addressed a very similar issue with AutoCompleteBox recently. We haven't had the chance to release an Internal Build containing the fix yet but we will be able to do this next week.

Just to make sure the scenario is the same: do you have the FilterDelay property set to a value different than TimeSpan.Zero in your project?

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Doug
Top achievements
Rank 1
answered on 25 Sep 2013, 12:51 PM
Hi Deyan

I didn't set neither of those properties, so i guess they have their default values.
I hope we are talking about the same issue. Ill check out the internal build next week for fix.

Regards Doug
0
Deyan
Telerik team
answered on 30 Sep 2013, 08:11 AM
Hello Doug,

Please, check out the Internal Build and let me know if the issue persists.

Can you please tell me if the issue is reproducible in our Demos Application so that we continue investigating using the demos there?

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Doug
Top achievements
Rank 1
answered on 01 Oct 2013, 10:58 AM
Hi

I checked the internal build, and the problem still exists.

I also tried with the examples and i could reproduce. 

Steps to reproduce:

1) Open Autocomplete 
2) select web service example
3) write in "don"
4) don't wait for loading, delete all with delete button on keyboard (fast)
5) write in "john"
6) dont wait for loading, delete all with delete button keyboard (fast)
7)Repeat steps 3-6 untill error occurs

Unfortunately i dont know which version of example im using but i think it doesn't even matter.

Best Regards Doug
0
Deyan
Telerik team
answered on 01 Oct 2013, 11:36 AM
Hello Doug,

Thanks for writing.

I have been able to reproduce the issue. We will start looking into it and will try our best to provide a fix for Q3 2013 scheduled for mid October.

I have added 1000 Telerik points to your account for bringing our attention to this.

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Tim
Top achievements
Rank 1
answered on 17 Jan 2014, 02:12 PM
Is there an update to this? I am seeing bug reports with the exact same stack trace in version 2013.3.1016.3040

Are there any workarounds if a fix has not been published?
0
Deyan
Telerik team
answered on 20 Jan 2014, 08:51 AM

Hello Tim,

This issue should be addressed. To make sure that this is not something else, we would like to learn some more details about the scenario. We will try to reproduce the glitch on our side and see how to fix it.



Thanks for your time.



Regards,

Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
AutocompleteBox
Asked by
Doug
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Doug
Top achievements
Rank 1
Tim
Top achievements
Rank 1
Share this question
or