TIAN Posted October 24, 2007 Report Share Posted October 24, 2007 I use a controle Chart FX.Lite in my Visual Studio 2005 C# Form. My application works very well. But a few hours later, I get an error following: La r Quote Link to comment Share on other sites More sharing options...
maximop Posted October 24, 2007 Report Share Posted October 24, 2007 The error is coming from ChartFX. It means that the component has not being initialized. When you re-opened the project, did you see the chart control on the form? Have you downloaded any ChartFX updates? I will try to remove the chart control and its references, and drop it again on the form; then, try recompiling the application. Quote Link to comment Share on other sites More sharing options...
TIAN Posted October 24, 2007 Author Report Share Posted October 24, 2007 Thank you very much, I think you are right. I will change codes after adding the two lines and I will test. Because this code is in Thread, it's possible create this error by asynchronization. chartTV.ClearData(ClearDataFlag.Values); chartTV.ClearData( ClearDataFlag.PerPointAttributes);chartTV.OpenData(COD.Values, 1, 2); //assign immediately the values to avoid errors display by Form.NativeWindow chartTV.Value[0, 0] = 100; chartTV.Value[0, 1] = 0; .... chartTV.CloseData( COD.Values); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.