jfetner

Is FusionCharts.RenderChart thread safe?

Recommended Posts

I am using an AJAX call to load my charts.  Occassionally I get an error on some of the charts.  It seems to be random so I am wondering if it may be related to loading the charts via AJAX?  This is the error I get:

 

Collection was modified; enumeration operation may not execute.

 

at System.Collections.Hashtable.HashtableEnumerator.MoveNext()
   at InfoSoftGlobal.FusionCharts.FC_Transform(Hashtable arr, String tFormat, Boolean ignoreBlankValues)
   at InfoSoftGlobal.FusionCharts.fc_encodeJSON(Hashtable json, Boolean enclosed)
   at InfoSoftGlobal.FusionCharts.RenderChartALL(String chartSWF, String dataUrl, String dataStr, String chartId, String chartWidth, String chartHeight, Boolean debugMode, Boolean registerWithJS, Boolean allowTransparent, String bgColor, String scaleMode, String language)
   at InfoSoftGlobal.FusionCharts.RenderChart(String chartSWF, String dataUrl, String dataStr, String chartId, String chartWidth, String chartHeight, Boolean debugMode, Boolean registerWithJS)

Share this post


Link to post
Share on other sites

Hello,

 

Has anything further been discovered on this one? We have seen the same thing. Using AJAX, very randomly, we get the exact same error and call stack. 

 

Thanks,

 

Steve

Share this post


Link to post
Share on other sites
Guest Sumedh

Steve,

 

Can you provide more details on this?

 

> What FusionCharts version you have used?

> Can you send us the sample code to replicate the same at our end?

> Also, did you render the chart in JavaScript mode or Flash mode?

Share this post


Link to post
Share on other sites

Getting same error but very randomly with exact call stack.

 

Version : FusionCharts XT (v3.3.1 - Service Release 2) (28th May, 2013)

Its rendering using Flash.

 

It happens very randomly, so unable to provide reproducible code. 

 

Anyone solved it ?

 

Is HTML5 mode rendering more reliable ?

Share this post


Link to post
Share on other sites

Sumeth,

 

It does n't occur consistently. But happens at least once in a week.

We are displaying 5 charts in five different iframe tag and problem happens in any one of the chart.

 

Hope this helps...!

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