Autor Beitrag
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 17.09.06 19:54 
Hallo Leute !
Hab mal wieder ein kleines Problem.
Mein Programm friert ein falls die Url nicht exestiert trotz try except.
Hat einer ne Idee wie man das umgehen kann.
Danke Blackheart666

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TForm1.Button1Click(Sender: TObject);
var
  UrlString: string;
  ClickedOK: Boolean;
begin
  UrlString := 'http://www.';
  ClickedOK := InputQuery('''Bitte Url eingeben !', UrlString);
  try
  if ClickedOK then
    memo1.Text:=IdHTTP1.Get(UrlString);
  except
  Showmessage('Fehler! - Seite kann nicht geöffnet werden');
 end;
end;
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 17.09.06 20:04 
Ein Exceptionhandler reagiert ja nur auf Exceptiuons, wenn keine auftreten hilft er nicht. Hast du mal versucht den ReadTimeout herunter zu setzen?

_________________
Markus Kinzler.
Blackheart666 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 17.09.06 20:08 
Hallo !
ReadTimeout steht auf 0.
Hab jetzt Application.ProcessMessages in den Block gesetzt jetzt funzt es.