Access violation on chart editor?
Posted: Tue Mar 23, 2004 8:19 pm
Hi,
I have a chart with manually added series(TBarSEries):
fv_dbChartControl.Series[ nSeriesIndex ].AddXY( nIndex,
GetByteCount(nIndex )/ dDivisor,
asxaxislabels[ nIndex ],
newColor );
Now at run time, if i open up chart editor and go to Series->Data source
and pick Function from the list and pick Exp. Average from the function
list, apply and close the editor and run report again (while refreshing
the chart, i do removeAllSereis() nad then add series one by one again
manually). Now i close this report/window, an Access violation/invalid
pointer peration error is happening. Also if i do not pick that function
everthing works fine. Let em know if i am doign soemthing wrong.
Also related question, how do i hide Series->Data Source tab? I tried the
following, but delphi is not recognizing type TChartEditorHiddenTabs, i do
have TeeEdit in my uses list.
var
newtabs: TChartEditorHiddenTabs;
begin
newTabs := [cetSereisData];
fv_dbChartControl.Hidetabs := fv_dbChartControl.Hidetabs - NewTabs;
Thanks for your help.
- Suma.
The above message i have posted in the newsgroups section also. But may be that is not the right place. Also i found the answer for my second question. I had to add TeeEditCha unit in uses list. But i still need an answer for my first question. Please cc to sumak@bocada.com when replying to this post.
Thanks.
I have a chart with manually added series(TBarSEries):
fv_dbChartControl.Series[ nSeriesIndex ].AddXY( nIndex,
GetByteCount(nIndex )/ dDivisor,
asxaxislabels[ nIndex ],
newColor );
Now at run time, if i open up chart editor and go to Series->Data source
and pick Function from the list and pick Exp. Average from the function
list, apply and close the editor and run report again (while refreshing
the chart, i do removeAllSereis() nad then add series one by one again
manually). Now i close this report/window, an Access violation/invalid
pointer peration error is happening. Also if i do not pick that function
everthing works fine. Let em know if i am doign soemthing wrong.
Also related question, how do i hide Series->Data Source tab? I tried the
following, but delphi is not recognizing type TChartEditorHiddenTabs, i do
have TeeEdit in my uses list.
var
newtabs: TChartEditorHiddenTabs;
begin
newTabs := [cetSereisData];
fv_dbChartControl.Hidetabs := fv_dbChartControl.Hidetabs - NewTabs;
Thanks for your help.
- Suma.
The above message i have posted in the newsgroups section also. But may be that is not the right place. Also i found the answer for my second question. I had to add TeeEditCha unit in uses list. But i still need an answer for my first question. Please cc to sumak@bocada.com when replying to this post.
Thanks.