ramrckr

Collection was modified; enumeration operation may not execute. ERROR. Thread safety issue.

Recommended Posts

Hi,
 
We are getting the following error when calling FusionCharts.RenderChart method with proper parameters. Looks like a multi-thread execution issue. We have 4 graphs to be loaded on the same page.
This does not occur on a regular basis, but happens frequently on conducting load tests, where a lot of concurrent requests occur.
 
Would like to know if anyone else has reported this issue and the fix for this ASAP.
 
We are seriously worried, since if FusionCharts rendering is not thread safe, other request might end up rendering wrong information (Other users information) as well.
 
Collection was modified; enumeration operation may not execute. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
 
Exception Details: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
 
[invalidOperationException: Collection was modified; enumeration operation may not execute.]
   System.Collections.HashtableEnumerator.MoveNext() +14049324
   InfoSoftGlobal.FusionCharts.SetConfiguration(String setting, Object value) +317
   XXX.XXX.XXX.ConstructGraph(XXXSettings settings) in c:\XXXPath\XXXGraph.aspx.cs:420
   System.Web.UI.Control.OnLoad(EventArgs e) +109
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3321
 
The FusionChart dll version
File version 3.2.2.2
Product version 3.2.2.2
 
Thanks,
Ram
 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now