Page 1 of 1

Error of TSeries: Clear(), FastPen?

Posted: Mon Dec 06, 2010 2:21 am
by 16457870
Hello,

I use TeeChart VCL 2010 in C++ Builder XE update1.

When I called Series1->Clear(), this error occurred:

Project xxx.exe raised exception class ChartException with message 'Series Delete: ValueIndex 5136432 out of bounds (0 to -1).'.

clicked "Break" button, then message: "Source File not Found: TeEngine.pas" appeared.


I tested to fill some samples first
Series1->FillSampleValues(1024);
then it became:
Project xxx.exe raised exception class ChartException with message 'Series Delete: ValueIndex 5136468 out of bounds (0 to 1023).'.


Also, I could not set FastPen to true.
Error: Project xxx.exe raised exception class EReadError with message 'Property FastPen does not exist'.

Do you have a solution?

Thank you,
scoka

Re: Error of TSeries: Clear(), FastPen?

Posted: Tue Dec 07, 2010 2:24 pm
by narcis
Hi scoka,
When I called Series1->Clear(), this error occurred:

Project xxx.exe raised exception class ChartException with message 'Series Delete: ValueIndex 5136432 out of bounds (0 to -1).'.
I could reproduce this issue and added it (TV52015309) to the defect list to be fixed for next releases. In the meantime a workaround is doing this:

Code: Select all

	Series1->FillSampleValues();

	for (int i = Series1->Count()-1; i >=0 ; i--) {
		Series1->Delete(i);
	}
Also, I could not set FastPen to true.
Error: Project xxx.exe raised exception class EReadError with message 'Property FastPen does not exist'.
This works fine here. As discussed in this thread, this problem indicates your Delphi is still referencing old TeeChart versions.

Re: Error of TSeries: Clear(), FastPen?

Posted: Wed Dec 08, 2010 1:56 am
by 16457870
your Delphi is still referencing old TeeChart versions
Thank you, I can use that Property now.