Page 1 of 1

Problem with C++ Builder Tokyo and android

Posted: Wed Nov 29, 2017 5:59 am
by 16580647
I am trying to port my FMX application from Berlin to Tokyo (C++), but I have a problem with android version when I try to add values to series at runtime (it produces access violation).
I try to make a small sample and it seems that either this one works correctly in Android (in iOS or windows works fine).
My sample is:
Add a teechart component on a form with one series and try it to fill with data at runtime with Chart1->SeriesList->FillSampleValues(20);
In Windows and iOS it displays chart correctly but not on Android.

Same application in Delphi works fine.
Is it something wrong with my installation or TeeChart or there is a bug in Tokyo?

Re: Problem with C++ Builder Tokyo and android

Posted: Wed Nov 29, 2017 12:59 pm
by yeray
Hello,

I don't get any Access Violation using the latest TeeChart Pro v2017.22. However, calling FillSampleValues for the whole SeriesList doesn't seem to populate the series in C++Builder for Android.
Instead, this works fine for me:

Code: Select all

  for (int i = 0; i < Chart1->SeriesCount(); i++) {
	Chart1->Series[i]->FillSampleValues(20);
  }

Re: Problem with C++ Builder Tokyo and android

Posted: Wed Nov 29, 2017 2:34 pm
by 16580647
Hello,

I use the same Teechart version
I have access violation when I use Add method eg:
Chart1->Series[0]->Add()
Can you try it to see if it works in your case?

Re: Problem with C++ Builder Tokyo and android

Posted: Wed May 02, 2018 12:12 pm
by yeray
Hello,

Excuse us for the lack of reply here.
This is just to inform we've added it to the public tracker and found a workaround for it:
http://bugs.teechart.net/show_bug.cgi?id=2032