Autor Beitrag
Masenko
Hält's aus hier
Beiträge: 9



BeitragVerfasst: Mi 27.04.05 17:34 
Hallo

Ich hab es so probiert :
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
procedure TForm1.Button1Click(Sender: TObject);
var
  FormImage1 : TBitMap;
begin
  begin
    FormImage1 := GetFormImage;
    try
      FormImage1.canvas.draw(-560,-576,FormImage1);
      FormImage1.width:= 300;
      FormImage1.height:= 300;
    finally
      FormImage1.Free;
    begin
    Savepicturedialog1.Filter :=  'Jpg Dateien (*.jpg)|*.jpg|Alle Dateien (*.*)|*.*';
    Savepicturedialog1.DefaultExt := '.jpg';
    If Savepicturedialog1.Execute then
    FormImage1.SaveToFile(SavepictureDialog1.FileName);
    end
  end
  end
end;


Kann mir jemand sagen warum ich immer eine Fehlermeldung beim speichern bekomme?

danke
MfG Masenko

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Mi 27.04.05 17:39 
Welche Fehlermeldung kommt denn?

PS.: Bitte setze deinen Code in die entsprechenden Delphi-Tags. Einfach rechts oben auf user defined image klicken. ;)
Masenko Threadstarter
Hält's aus hier
Beiträge: 9



BeitragVerfasst: Mi 27.04.05 17:50 
ok sorry werd das nächste mal darauf achten.

also ich bekomme immer die Fehlermeldung:

Project Project1.exe raised exception class EAccessViolation with message 'Access violation at address 00457A4E in module 'Project1.exe'. Read of address 00000051'.

und hab keine Ahnung was das bedeutet, sonst würd ich ja nicht fragen :D
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mi 27.04.05 18:33 
warum gibst du das Image mit Free frei?
Wenn du danach versuchst darauf zuzugreifen muss es ja zu einem Fehler kommen, da es nicht mehr existiert.

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
Masenko Threadstarter
Hält's aus hier
Beiträge: 9



BeitragVerfasst: Mi 27.04.05 19:48 
ahh stimmt, hab ich total übersehen.

Danke