Thanks Lulu. for finding those errors. For some reason they did not happen on my Dell AMD Cpu laptop.
I was in a hurry to upload yesterday, as I made quite a number of other programs.
For the clouds program I also forgot the destructor:
type
TArray2D = class
private
FWidth, FHeight: Integer;
FData: array of Double;
public
constructor Create(AWidth, AHeight: Integer);
destructor Destroy; override;
and under implementation
{$R *.lfm}
Add this:
destructor TArray2D.Destroy;
begin
SetLength(FData, 0); // Or use Finalize(FData);
inherited Destroy;
end;
Thank you Lulu for letting me know.
TRon: Yes it is confusing, but I like the clouds produced and thought it would be cool to share what I had to others.