Autor Beitrag
Windoof
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

Windows 95/98 SE/NT4.0 WS/2000 Professional/XP Home & Professional, SuSE Linux 7.0/9.0 Professional, OpenBSD
Dev-C++ 4.9.9.0, Borland C++ Builder 3 Personal/5 Professional/6 Enterprise, Borland Delphi 6 Enterprise/7 Enterprise
BeitragVerfasst: Mi 18.02.04 14:23 
Hallo.

Folgende Funktion...
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TfmUploader.btnStartClick(Sender: TObject);
begin
        btnStart.Caption:='Bitte warten...'// Button-Caption
        Cursor:=crHourGlass; // Cursor setzen
        if odUpload.Execute then
        begin
                slText.LoadFromFile(odUpload.FileName); // <--- Hier ist das Problem!
                ShellExecute(Handle,'open',PChar('http://www.domain.net/php-script.php?param1='+odUpload.FileName+'¶m2='+slText.Text),'','',0);
        end;
        Cursor:=crDefault;
        btnStart.Caption:='Upload';
end;
... bringt folgende Fehlermeldung:
Zitat:
Zugriffsverletzung bei Adresse 0044EF46 im Modul 'Projekt1.exe'. Lesen von Adresse 00000000.
... Was mach ich falsch?

MfG Windoof


Zuletzt bearbeitet von Windoof am Mi 18.02.04 14:30, insgesamt 1-mal bearbeitet
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 18.02.04 14:25 
ShellAPI. Sollte sich aber auch mit der Suche in diesem Forum klären lassen....
Windoof Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

Windows 95/98 SE/NT4.0 WS/2000 Professional/XP Home & Professional, SuSE Linux 7.0/9.0 Professional, OpenBSD
Dev-C++ 4.9.9.0, Borland C++ Builder 3 Personal/5 Professional/6 Enterprise, Borland Delphi 6 Enterprise/7 Enterprise
BeitragVerfasst: Mi 18.02.04 14:31 
Luckie hat folgendes geschrieben:
ShellAPI. Sollte sich aber auch mit der Suche in diesem Forum klären lassen....
Sorry, das hab ich noch gefunden... hab jetzt anderes thema (anderer Fehler). Aber trotzdem Danke!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 18.02.04 14:42 
Hä? Was war den das jetzt? Als ich geantwortet habe, ging es noch um was ganz anderes. :evil: Was soll bitte der Blödsinn, sein Posting total zu ändern???
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mi 18.02.04 14:46 
Hallo!

Es ist äußert unhöflich und in diesem Forum unerwünscht, den Inhalt seiner Postings total abzuändern! Also bitte nicht nochmal!

Grüße
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Windoof Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

Windows 95/98 SE/NT4.0 WS/2000 Professional/XP Home & Professional, SuSE Linux 7.0/9.0 Professional, OpenBSD
Dev-C++ 4.9.9.0, Borland C++ Builder 3 Personal/5 Professional/6 Enterprise, Borland Delphi 6 Enterprise/7 Enterprise
BeitragVerfasst: Mi 18.02.04 15:12 
Ist ja gut, aber ich hatte es ja kurz danach gefunden, und brauchte es also nicht mehr, ich hab nicht gesehen, dass schon geantwortet wurde... weiß jemand ne antwort für das jetzige problem?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 18.02.04 15:18 
Was für eine Klasse ist slText und existiert zu dem Zeitpunkt eine Instanz von selbiger?
Martin77
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 282

XP Prof
D6 Prof, D7 Personal, D7 Enterprise, D8 personal
BeitragVerfasst: Mi 18.02.04 16:18 
Hi Luckie, ich denke auch er hat vergessen seine Liste zu erstellen :)

der Anfang seiner Variable slText lässt ja schon sehr auf eien StringListe schliessen.

ausblenden Delphi-Quelltext
1:
 slText:= TStringList.create;					

sollte abhilfe schaffen, vorrausgesetzt du verwendest eine StringListe :)

Ja nicht vergessen sie später wieder freizugeben und auf nil zu setzen, scheint ja ne Klassenvariable zu sein


Martin