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!
ValueList Count(xxx) greater than the array ...
-
- Newbie
- Posts: 15
- Joined: Mon Jun 26, 2006 12:00 am
- Location: San Diego, Ca.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 15
- Joined: Mon Jun 26, 2006 12:00 am
- Location: San Diego, Ca.
Error in AddArray, make points individually visible or not-
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
On a related subject is it possible to make individual points visible and not-visible by knowing their index in the point-series?
Thanks
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi John,
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.
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.
Yes, you can achieve that using the OnGetPointerStyle event and set the pointer style to not visible for those points you want.On a related subject is it possible to make individual points visible and not-visible by knowing their index in the point-series?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- 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 ...
Do you have an example of using OnGetPointerStyle?
-
- Newbie
- Posts: 15
- Joined: Mon Jun 26, 2006 12:00 am
- Location: San Diego, Ca.
Do you mean OnGetSeriesPointerStyle?
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)
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)
Hi John,
you have two options :
1) Use the OnGetSeriesPointerStyle event, similar code to the following :
2) Use the SetPointColor method to assign clNone color to specific points :
m_chart.Series(0).SetPointColor(1,clNone);
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;
}
m_chart.Series(0).SetPointColor(1,clNone);
Pep Jorge
http://support.steema.com
http://support.steema.com