int a,b,c,d,i,f,n,j; int* Mas1 = new int[n]; a = Memo1->Lines->Count; n=0; b=a-1; for (i=0;i<=b;i++) { Mas1[n]=StrToInt(Memo1->Lines->Strings[i]); n=n+1; } Edit2->Text=Mas1[1]; delete (Mas1); This code is executed by pressing the button, however, when I press the button twice, an error pops up, it works only once in general. Mistake:
"Invalid Pointer Operation"
And falls out of this line
Edit2->Text=Mas1[1]; Why I do not understand. What is it that twice recorded?