Autor Beitrag
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: So 15.07.07 21:01 
Hi,

ich hab ein im TrayIcon laufendes Programm welches von zeit zu zeit nach Updates suchen soll.
ich mach das mit idHtt.Post();
wenn alles gut geht bekomm ich die Versionsnummer der Aktuellen Version zurück.
nur wenn der User gerade kein Internet hatt dann kommt ein fehlerfenster mit Einem Socket Error.
kann ich dem nicht entweder sagen dass es ihm egal sein soll wenn da ein Fehler ist,
oder dass er es nur machen soll wenn Internetverbindung besteht.

Danke im Voraus

Mfg
Philipp
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 15.07.07 21:12 
Zum Fehler abfangen: Benutz try und except
Testen ob eine Verbindung besteht: *klick*

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: So 15.07.07 21:14 
aso mit try und finnaly gehts ned ?
und was muss ich dann ins expect reinschreiben?
was passieren soll wenn icht oder wenn schon?
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 15.07.07 21:23 
Dieses Forum hat ne Suche und Delphi hat ne Hilfe.

Der Code nach Except wird nur bei nem Fehler (=keine Verbindung) ausgeführt.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: So 15.07.07 22:03 
ok danke!

EDIT: beim Complimieren mit delphi regt er sich dann scon auf aber das is egal haupsache es geht dann wenns fertig is..
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 16.07.07 08:04 
in wie fern regt er sich beim kompilieren auf ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
pigfacejoe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 332
Erhaltene Danke: 1

Win 10, Ubuntu
Delphi,Javascript, PHP, Java, Python
BeitragVerfasst: Mo 16.07.07 10:14 
Das ist normal mit dem try except, dass das except bei einem Fehler eben nicht dutchgeführt wird, wenn das Prog mit Delphi geöffnet ist. Das kann man aber irgendwo in den Optionen einstellen!

Gruss
PigfaceJoe
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 16.07.07 10:31 
"Im Projekt Updater ist eine Exception der Klasse EIdHTTPException aufgetreten. Meldung 'Dann der fehler... in dem fall HTTP 1.1 404 weil ich einfach den pfad verändert habe (ging schneller als das internet kabel rauzureißen ^^'
Pozess wurde angehalten. Mit einzelnen anweißungen oder Start fortsetzen.

das bei den optionen hab ich nicht gefunden ....
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 16.07.07 10:36 
Bei D7 unter Tools -> Debugger-Optionen -> Reiter: Sprach-Exceptions. Bei "Bei Delphi-Exceptions stoppen" den Haken rausmachen. Bei anderen IDEs dürfte das ähnlich sein.

_________________
We are, we were and will not be.
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Mo 16.07.07 10:54 
/\
||
Das hat mir jetzt auch geholfen... Danke, hab mich immer total aufgeregt, wenn dann bei einem Fehler, der sehr wahrscheinlich ist und eine einfache Fehlermeldung ausgibt, während der arbeit immer diese ganzen unverständlichen Fenster kommen...
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 16.07.07 11:05 
Danke Gausi!