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

Exception- AvlEnumerator:version mismatch

12 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yoram
Top achievements
Rank 1
Yoram asked on 22 Nov 2010, 09:30 AM

Hello,

I have recently upgraded to "RadControls for WinForms Q2 2010 SP2" and since then, occasionally, I'm getting this exception:

AvlEnumerator:version mismatch

The relevant call stack is:

 at Telerik.Collections.Generic.AvlTree`1.Enumerator.CheckVersion()
 at Telerik.Collections.Generic.AvlTree`1.Enumerator.MoveNext()

What can be the problem? I couldn’t find documentation for it.

Thanks,

12 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 22 Nov 2010, 10:33 AM
Hello,

Under what circumstances and with what control are you getting this error?
I'd also advise upgrading to the latest Q3 2010 version as there are many good changes and fixes in this newer version.

Regards,
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 23 Nov 2010, 03:27 PM
Hello,

Do you need any more help with this? If so, just let me know. If the upgrade suggestion helped, please mark as answer.

Thanks
Richard
0
Yoram
Top achievements
Rank 1
answered on 23 Nov 2010, 04:18 PM

Unfortunately I didn’t find an elegant solution to it and it don’t want to upgrade at this monument because in the process of upgrading from “Q3 2009” to “Q2 2010” I had to make modification in my code and I don’t have time to do so.

And back to our business, I  didn’t found that this exception have any effect on my business logic and I couldn’t determine what cause it , so to avoid the exception (and I know that it’s ugly). I have done this:

   catch (InvalidOperationException ex)

            {

                if (!(ex.Message == "AvlEnumerator:version mismatch" && ex.Source == "Telerik.WinControls"))

                {

                    throw ex;

                }

            }

 

I’ll be happy to know if you have better solution to my or even explain what the exception means.

Thank,

0
Richard Slade
Top achievements
Rank 2
answered on 24 Nov 2010, 10:29 AM
Hello,

Sorry to hear that you are still experiencing this issue. Please can you post a sample that replicates your issue and a description of how to replicate it and I'll do my best to replicate it and help out.

Thanks
Richard
0
Julian Benkov
Telerik team
answered on 24 Nov 2010, 02:59 PM
Hi Yoram,

We addressed issues related to the internal data engine of RadGridView for Q3 2010 and issues similar to the described one were resolved. Just like Richard said, you can give the latest version a try and if you still experinces any difficulties, please open a new support ticket and send us a sample application. This will allow us to investigate your specific scenario in detail.

Regards,
Julian Benkov
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
Accepted
ren
Top achievements
Rank 1
answered on 04 Dec 2010, 09:11 AM
I guess the problem is caused by “foreach”,when the collection is be modified in previous loop.
I suggest you can replace "foreach" by "for".
0
Julian Benkov
Telerik team
answered on 08 Dec 2010, 04:08 PM
Hi Yoram,

Like Ren said the issue can be the foreach operator used in the case where you modify the collection of rows. In this scenario the solution is to use the for or while operators. 

I hope this is helpful.

Regards,
Julian Benkov
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
Yoram
Top achievements
Rank 1
answered on 09 Dec 2010, 11:34 AM
Thank you all,
I'll try to implement it and let you know...
0
fruzicka
Top achievements
Rank 1
answered on 07 Apr 2011, 10:03 PM
Is there any way how to reproduce this issue?
I got error report from my application containing this Exception, but I can not reproduce it.
Im using the latest 2011.1 build of telerik winforms controls.
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 07 Apr 2011, 10:33 PM
Hello,

Are you looping over a collection and modifying it at any point? If so, then use the above suggested solution or use ToArray and loop over that.
Hope that helps
Richard
0
fruzicka
Top achievements
Rank 1
answered on 07 Apr 2011, 10:40 PM
Thank you. I already changed it to for loop, but I can not test it. I even had no problems with foreach loop on my machine.
I will send it to the user, so he can test it for me ...
0
sco
Top achievements
Rank 1
answered on 09 Apr 2011, 04:21 AM
hello,

Please use 2011, it more powerful

Tags
General Discussions
Asked by
Yoram
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Yoram
Top achievements
Rank 1
Julian Benkov
Telerik team
ren
Top achievements
Rank 1
fruzicka
Top achievements
Rank 1
sco
Top achievements
Rank 1
Share this question
or