I found out , it belongs to chart display. Everything works well for quite a while, then
suddenly the error message appears and the program stops. If the chart display is
disabled , there is no error message at all.
Of cause , I looked for an explanation of java.lang.ArrayIndexOutOfBoundsException,
but I have no idea where to look for length and size of this size in the code. Both values
are always different from error to error.
I attached a .aia file which is a subset of my project, but it behaves like I described earlier.
I removed all not necessary parts to make it as simple as possible.
The program receives a string from a server any 2 seconds. The string consists of 158 values
separated by a semicolon. The program picks certain values out of the stream and displays them
als value and chart. In the example just the values at 3 and 4 is used. I test the program
with my smart phone by scanning the QR-code.
During preparing the example, I found some strange behavior and I now have a guess.
The first value of the string is a time mark in seconds. Normally it must increment by 2
any message from server. However, it seems that after a while the value skips by 2 or 4.
Could it be that something prevents receiving the stream from server and the code swallows
and finally crashes? I know that the stream is correct, because I use an almost similar program
on my PC.
First I checked .GetAllEntries without .chart.Clear . The size of the lists increased
dramatically. .chart.Clear does the job.
I also realized that the chart display I expected, can not be realized with AI2 and my
smartphone. I have to decrease the number of displayed points a lot.