Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: erzeugts IImage Löschen?
8. Apr 2007, 15:32
Hi,
Also normalerweise dürfte das kein Problem sein. Zeig mal bisschen Code. Folgendes funktioniert nämlich ohne Probleme...
Delphi-Quellcode:
var
Test: Array[0..1] of TImage;
procedure TForm1.Button1Click(Sender: TObject);
var i: Integer;
begin
for i:= 0 to 1 do
begin
Test[i] := TImage.Create(Self);
with Test[i] do
begin
Parent := Self;
Picture.Bitmap := ABitmap;
Left := i* 100;
end;
end;
end;
procedure TForm1.Button2Click(Sender: TObject);
var i: Integer;
begin
for i:= 0 to 1 do
Test[i].Free
end;
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|