ValueList Count(xxx) greater than the array ...

TeeChart for ActiveX, COM and ASP
Post Reply
John P. Francis
Newbie
Newbie
Posts: 15
Joined: Mon Jun 26, 2006 12:00 am
Location: San Diego, Ca.

ValueList Count(xxx) greater than the array ...

Post by John P. Francis » Tue Feb 06, 2007 12:11 am

ValueList Count(xxx) greater than the array length(0). D:\Steema\Root\TeeChartVCL\Sources7\TeEngine.pas, line 5316)

I do not have the source code, so how am I to debug this.

I think that it is related to this line:
m_pChart->Series(PointPlotRedIdx). AddArray( RedPointCount, m_YValuesRed, m_XValuesRed );

but not sure.

The system runs just fine for 1 or 2 thousand data points then this error jumps up randomly. Sometimes just after a few hundred data points.

My OleSafeArrays are created with 1,000,000 8-Byte Reals, so I should not run out of space!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 06, 2007 8:28 am

Hi John P. Francis,

Would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

John P. Francis
Newbie
Newbie
Posts: 15
Joined: Mon Jun 26, 2006 12:00 am
Location: San Diego, Ca.

Error in AddArray, make points individually visible or not-

Post by John P. Francis » Tue Feb 13, 2007 2:17 am

It is not practical to send an example.

On a related subject is it possible to make individual points visible and not-visible by knowing their index in the point-series?

Thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 13, 2007 8:31 am

Hi John,
It is not practical to send an example.


Why do you think it is not practical? In some cases, we need to see how TeeChart is used in order to reproduce the issues reported. A simple example project reproducing the issue is very helpful for us to reproduce it and try to find a solution to it. So we would be very grateful if you could send us an example to reproduce the issue.
On a related subject is it possible to make individual points visible and not-visible by knowing their index in the point-series?
Yes, you can achieve that using the OnGetPointerStyle event and set the pointer style to not visible for those points you want.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

John P. Francis
Newbie
Newbie
Posts: 15
Joined: Mon Jun 26, 2006 12:00 am
Location: San Diego, Ca.

I'll try and cook up a small example, also ...

Post by John P. Francis » Tue Feb 13, 2007 4:04 pm

Do you have an example of using OnGetPointerStyle?

John P. Francis
Newbie
Newbie
Posts: 15
Joined: Mon Jun 26, 2006 12:00 am
Location: San Diego, Ca.

Do you mean OnGetSeriesPointerStyle?

Post by John P. Francis » Tue Feb 13, 2007 4:19 pm

I could not find OnGetPointerStlye, but maybe is it OnGetSeriesPointerStyle which is number 33.

If so, what funstion signature do I use?

such as:

ON_EVENT(CCelulatorView, IDC_TCHART1, 21, /* OnMouseUp */ OnMouseUpChart, VTS_I4 VTS_I4 VTS_I4 VTS_I4)

then...
void CCelulatorView::OnMouseUpChart(long Button, long Shift, long X, long Y)

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

Post by Pep » Wed Feb 14, 2007 2:47 pm

Hi John,

you have two options :
1) Use the OnGetSeriesPointerStyle event, similar code to the following :

Code: Select all

void CPstylesDlg::OnOnGetSeriesPointerStyleTchart1(long SeriesIndex, long ValueIndex, long FAR* AStyle) 
{
	if (ValueIndex > 2)
		*AStyle=psNothing;
	else
		*AStyle=psRectangle;		
}
2) Use the SetPointColor method to assign clNone color to specific points :

m_chart.Series(0).SetPointColor(1,clNone);

Post Reply