AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Dateidownload abbrechen
Thema durchsuchen
Ansicht
Themen-Optionen

Dateidownload abbrechen

Ein Thema von maximi · begonnen am 18. Nov 2003 · letzter Beitrag vom 30. Dez 2003
Antwort Antwort
maximi

Registriert seit: 9. Jun 2003
217 Beiträge
 
Delphi 7 Personal
 
#1

Dateidownload abbrechen

  Alt 18. Nov 2003, 17:52
Hallo!!
Wie kann man einen Dateidownload abbrechen, wenn man etwas mit indy downloadet???
  Mit Zitat antworten Zitat
Benutzerbild von Duffy
Duffy

Registriert seit: 19. Mär 2003
Ort: Wuppertal
835 Beiträge
 
Delphi 3 Standard
 
#2

Re: Dateidownload abbrechen

  Alt 18. Nov 2003, 18:04
Hallo maximi,
eine FTP Vorgang abbrechen geht mit "IdFTP1.Abort;"

Zitat von Indy Hilfe:
Stops an FTP service operation.

procedure Abort; virtual;

Description

Abort is a procedure that instructs the FTP server to interrupt the current FTP service request, and any associated transfer of data. Abort sends the FTP ABOR command to the server to halt the current operation. Abort forces the socket allocated to the data channel for the FTP session to be disconnected by calling KillDataChannel. Abort does not change the state in Connected for the control channel used in the FTP client.
bye
Claus
Künftige Generationen wollen ihre Fehler selber machen.
Jedes Programm wird nie das können, was Du wirklich brauchst.
Das Gegenteil von gut ist gut gemeint
-----
  Mit Zitat antworten Zitat
maximi

Registriert seit: 9. Jun 2003
217 Beiträge
 
Delphi 7 Personal
 
#3

Re: Dateidownload abbrechen

  Alt 18. Nov 2003, 18:10
Ja, das hab ich schon probiert. Ich bekomme folgende Fehlermeldung:
Transfer aborted Broken Pipe!
  Mit Zitat antworten Zitat
Benutzerbild von Duffy
Duffy

Registriert seit: 19. Mär 2003
Ort: Wuppertal
835 Beiträge
 
Delphi 3 Standard
 
#4

Re: Dateidownload abbrechen

  Alt 18. Nov 2003, 18:21
Hallo maximi,
Indy ist verliebt in Exception. Du mußt den Abbruch wie folgt gestalten
Delphi-Quellcode:
   try
     IdFTP1.Abort;
   except
   end;
bye
Claus
Künftige Generationen wollen ihre Fehler selber machen.
Jedes Programm wird nie das können, was Du wirklich brauchst.
Das Gegenteil von gut ist gut gemeint
-----
  Mit Zitat antworten Zitat
-Volle-

Registriert seit: 17. Dez 2003
Ort: Altdorf
40 Beiträge
 
Delphi 7 Enterprise
 
#5

Re: Dateidownload abbrechen

  Alt 30. Dez 2003, 15:08
...
aslo ich hab genau das gleiche problem, auch wenn ich den abbruch so machen wie duffy s erklaert hat.
bei mir kommt der fehler auch auserhalb der IDE ....
naja muessen sich die leude eben mit ner haesslichen fehlermeldung rumplagen.
wenn einer weiss worans liegt dann bidde melden :>
thx
cYa n' sTay [ S ! C ]

Gruss Volle
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:28 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz