Page 1 of 1

Problem with deleting points from a serie

Posted: Mon Jan 26, 2004 12:15 pm
by 8120986
Hi, every time I call the Delete method on a Line-serie, it throws an exception. I have now removed everything fancy as time formatting and everything.

Now my code is like this:

Code: Select all

{
            Steema.TeeChart.Styles.Line serie = new Steema.TeeChart.Styles.Line();
            LineChart.Series.Add(serie);

            for(int nIndex=0; nIndex<100; ++nIndex)
            {
                serie.Add(nIndex*0.1, nIndex);
            }

            try
            {
                serie.Delete(0, 50);
            }
            catch(Exception exp)
            {
                System.Diagnostics.Trace.WriteLine("SerieCount: " + serie.Count.ToString() + " Exception: " + exp.Message);
            }
}
I'm using the TeeChart for .NET version 1.1.1452.42972

Posted: Tue Jan 27, 2004 9:12 am
by Marc
Hello,

Thanks for letting us know. That's fixed for the next maintenance release.

Regards,
Marc Meumann
Steema Support

Posted: Thu Jan 29, 2004 8:37 am
by 8120986
OK, Can you tell me when the next release will be?

And if this behavior is leaving the serie data in an incorrect state?

Thanks in advance...

Br,
Klaus Wenzel Jørgensen

Posted: Fri Jan 30, 2004 8:59 am
by Marc
Hello Klaus,

The update will be available next week (1st week Feb). The bug, in this case, occurring during point delete related to an incorrect check for the presence of Marks (not taking into account that Marks=null when Marks have not been populated). When the problem occurs the points should already have correctly been deleted from the Series so, as a temporary measure, you could continue to catch the error and continue testing/developing your code. Alternatively you could temporarily activate Series Marks for that Series though you would need to fill pro-actively fill them with content (not just rely on automatically generated content).

Regards,
Marc Meumann
Steema Support

Posted: Fri Jan 30, 2004 9:48 pm
by 8120986
Thanks for your answer.

I already "eats" the exception silently...

But I am looking forward to get the next release.

Release date?

Posted: Mon Feb 09, 2004 12:50 pm
by 8120986
Hi Marc

Very soon I'll have to make a release of my app. When will the .NET component come in a fixed version?

Br,
Klaus WJ

Posted: Mon Feb 09, 2004 5:39 pm
by Pep
Hi Klaus,

today or tomorrow will be available for download the new maintenance release of TeeChart for Net v1.