Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Memory with TeeChart

Status
Not open for further replies.

luistsousa

Technical User
May 12, 2003
66
PT
Hello

Always that I run the following code gives an error to me, of memory when arrives at last serie to delete. Somebody knows which is the problem?

TLineSeries *serie[10];

for(int reg=0;reg<5;reg++){

TLineSeries *ls;
ls = new TLineSeries(DBChart1);
serie[reg]=ls;
DBChart1->View3D = true;
DBChart1->AddSeries(ls);
DBChart1->SeriesList->Series[0]=ls;
DBChart1->SeriesList->Series[0]->DataSource=Table1;
DBChart1->SeriesList->Series[0]->YValues->ValueSource=name;
DBChart1->SeriesList->Series[0]->XLabelsSource=&quot;date_id&quot;;
DBChart1->SeriesList->Series[0]->XValues->ValueSource=&quot;date_id&quot;;
DBChart1->SeriesList->Series[0]->XValues->DateTime=true;
Table1->Next();
}

for(int reg=0;reg<5;reg++)
delete serie[reg];




REgards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top