I tried with debugging,
it looks like there is problem with for loop:
for (int j=0; j<c; j++)
The initial value of j after running with debugging is 12 (j=12, see the image) , although it should start the loop with value j=0.
There seems to be another problem with c, which shows no value at all.
j and c are defined as follows:
TForm1 *Form1;
const int c=9;
TBitmapLayer* pLayer[c];
int i,j=0;
int r;
bool slip[c]={ false };
bool bing[c]={ false };
bool bong[c]={ false };
int alpha[c]={ 0 };
.....
If I replace in the loop c with cc ( which is defined solely as int (int cc=9 ; ), not as const int (const int c=9;),
then the value of cc shows as expected, that is 9.
I might be totally wrong, never worked with a debugger before.
I attached the image of debugging window below.
Is it possible that some kind of "compile settings", which are different from previous version of RAD Studio make this problem?
Thanks for any advice.