Autor Beitrag
hansdergott
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55

XP Mediacenter Edition; XP Home
Delphi
BeitragVerfasst: Mo 27.08.07 23:44 
hallo zusammen

weiß jemand wo das bild reingeladen wurde wenn ich folgenen Code anwende?
ist das bild als tmp datei irgendwo auf der festplatte oder im speicher?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TForm1.bild_erstellen;
var bmp:Tbitmap;
begin
try
bmp:=Tbitmap.Create;  <------ wo sind diese 500kb nach dem laden von der festplatte hin
bmp.Height:=100;
bmp.Width:=100;
bmp.LoadFromFile(opendialog1.filename);
form1.Canvas.Draw(0,0,bmp);
except
showmessage('Fehler beim laden oder erstellen');
application.Terminate;
end;
end;

beste grüße

Moderiert von user profile iconGausi: Delphi-Tags hinzugefügt
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Di 28.08.07 06:07 
Sie sind im Speicher als Speicherlücke in deinem Programm weil du nirgends das Bitmap wieder freigibst.