BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Indy 10.0.52 Error Handling?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Dev
Guest





PostPosted: Wed Jan 19, 2005 12:35 pm    Post subject: Indy 10.0.52 Error Handling? Reply with 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.


Back to top
Ciaran Costelloe
Guest





PostPosted: Wed Jan 19, 2005 2:26 pm    Post subject: Re: Indy 10.0.52 Error Handling? Reply with quote




"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





PostPosted: Wed Jan 19, 2005 3:24 pm    Post subject: Re: Indy 10.0.52 Error Handling? Reply with quote



"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





PostPosted: Wed Jan 19, 2005 6:19 pm    Post subject: Re: Indy 10.0.52 Error Handling? Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.