Problem with deleting points from a serie

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Klaus Wenzel Jørgensen
Newbie
Newbie
Posts: 6
Joined: Tue Jan 07, 2003 5:00 am

Problem with deleting points from a serie

Post by Klaus Wenzel Jørgensen » Mon Jan 26, 2004 12:15 pm

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

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Jan 27, 2004 9:12 am

Hello,

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

Regards,
Marc Meumann
Steema Support

Klaus Wenzel Jørgensen
Newbie
Newbie
Posts: 6
Joined: Tue Jan 07, 2003 5:00 am

Post by Klaus Wenzel Jørgensen » Thu Jan 29, 2004 8:37 am

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

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Fri Jan 30, 2004 8:59 am

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

Klaus Wenzel Jørgensen
Newbie
Newbie
Posts: 6
Joined: Tue Jan 07, 2003 5:00 am

Post by Klaus Wenzel Jørgensen » Fri Jan 30, 2004 9:48 pm

Thanks for your answer.

I already "eats" the exception silently...

But I am looking forward to get the next release.

Klaus Wenzel Jørgensen
Newbie
Newbie
Posts: 6
Joined: Tue Jan 07, 2003 5:00 am

Release date?

Post by Klaus Wenzel Jørgensen » Mon Feb 09, 2004 12:50 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Feb 09, 2004 5:39 pm

Hi Klaus,

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

Post Reply