This question is locked. New answers and comments are not allowed.
Hello,
I'm blocking since several days with an error that freezes my Silverlight application.
The application is quite complexe, and it would be hard for me to provide any snippet of code... but I will try to be clear as possible :)
So, the problem is the following :
When I do a specific action in my application, I need to call this function in my process : MyList.Clear().
This MyList object is an ObservableCollection<MyObject>, and it is bound on a RadGrid.
Unfortunatelly, the Clear() function throws the following error :
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
That exception does not directly crash the application, but it is thrown a lot of time and finally slows it down in a way that it's freezed during a few seconds (a few that is too long for a user).
Note that I see this exception in the Console of Vistual Studio, or when the Debug option Break when exceptions cross AppDomain or managed/native boundaries is checked.
So I would appreciate any clue to avoid these freezes :)
Thanks a lot in advance.
I'm blocking since several days with an error that freezes my Silverlight application.
The application is quite complexe, and it would be hard for me to provide any snippet of code... but I will try to be clear as possible :)
So, the problem is the following :
When I do a specific action in my application, I need to call this function in my process : MyList.Clear().
This MyList object is an ObservableCollection<MyObject>, and it is bound on a RadGrid.
Unfortunatelly, the Clear() function throws the following error :
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
That exception does not directly crash the application, but it is thrown a lot of time and finally slows it down in a way that it's freezed during a few seconds (a few that is too long for a user).
Note that I see this exception in the Console of Vistual Studio, or when the Debug option Break when exceptions cross AppDomain or managed/native boundaries is checked.
So I would appreciate any clue to avoid these freezes :)
Thanks a lot in advance.