| View previous topic :: View next topic |
| Author |
Message |
Dev Guest
|
Posted: Wed Jan 19, 2005 12:35 pm Post subject: Indy 10.0.52 Error Handling? |
|
|
How can I handle errors through Indy which at the moment are resulting in a
program crash. The error is 10052 connection reset by peer. Basically it's
when the program tries to connects to the servers IP and port which doesn't
have a server running, sends data (gets there) and expects data returned
(which it doesn't get) at this point I think it is crashing.
Please help.
|
|
| Back to top |
|
 |
Ciaran Costelloe Guest
|
Posted: Wed Jan 19, 2005 2:26 pm Post subject: Re: Indy 10.0.52 Error Handling? |
|
|
"Dev" <gregz0012 (AT) hotmail (DOT) com> wrote
| Quote: | How can I handle errors through Indy which at the moment are resulting in
a program crash. The error is 10052 connection reset by peer. Basically
it's when the program tries to connects to the servers IP and port which
doesn't have a server running, sends data (gets there) and expects data
returned (which it doesn't get) at this point I think it is crashing.
Please help.
|
Wrap your code in try..except blocks.
Ciaran
|
|
| Back to top |
|
 |
Chad Z. Hower aka Kudzu Guest
|
Posted: Wed Jan 19, 2005 3:24 pm Post subject: Re: Indy 10.0.52 Error Handling? |
|
|
"Dev" <gregz0012 (AT) hotmail (DOT) com> wrote in
news:41ee53f8$1 (AT) newsgroups (DOT) borland.com:
| Quote: | How can I handle errors through Indy which at the moment are resulting
in a program crash. The error is 10052 connection reset by peer.
Basically it's when the program tries to connects to the servers IP and
|
try..except, just as with any other exception.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Qualified help FAST with Indy Experts Support
from the experts themselves:
http://www.atozed.com/indy/experts/support.iwp
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Jan 19, 2005 6:19 pm Post subject: Re: Indy 10.0.52 Error Handling? |
|
|
"Dev" <gregz0012 (AT) hotmail (DOT) com> wrote
| Quote: | How can I handle errors through Indy which at the moment
are resulting in a program crash.
|
Use try...except blocks.
| Quote: | The error is 10052 connection reset by peer. Basically it's when
the program tries to connects to the servers IP and port which
doesn't have a server running
|
In such a case, you should be getting 10061 (connection refused), not 10052.
| Quote: | sends data (gets there) and expects data returned (which it
doesn't get) at this point I think it is crashing.
|
That, on the other hand, can result in 10052, meaning the connection was
disconnected prematurely.
Gambit
|
|
| Back to top |
|
 |
|