Access violation on chart editor?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Suma
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Bellevue, WA
Contact:

Access violation on chart editor?

Post by Suma » 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.

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

Post by Pep » Wed Mar 24, 2004 4:34 pm

Hi Suma,

I'm sorry, I cannot reproduce the problem here using the latest TeeChart Pro v7, all the steps to do are not clear, could you please post the detailed steps to reproduce the problem ?
Also, have you tried to use the FreeAllSeries(nil) method instead of the RemoveAllSeries method ?

Post Reply