So, this is executed repeatedly, not necessary to go to 10000 loops, can be broke. And executed again and again by click.
No memory loos - checking in task manager - +/- 23000 Kb
But suddenly it stops working, stops drawing in the middle of thing.
UI does not look completely frozen, just does not draw anything to Paintbox anymore.
Any clue ? Problem in TFloatPointArray or PaintBox ?
like +/-:
procedure TForm2.Button30Click(Sender: TObject);
type TFloatPointArray = array of TFloatPoint;
var
FPA: TFloatPointArray;
begin
for k := 0 to 10000 do
begin
application.ProcessMessages;
Setlength(FPA,0);
// fill FPA .....
form1.PaintBox1.Repaint;
// print out result from FPA to form1.PaintBox1 - draw lines between points
end;
end;