Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Is it wise to use two TIdTCPClient compnents in an application?

www.cryer.info
Managed Newsgroup Archive

Is it wise to use two TIdTCPClient compnents in an application?

Subject:Is it wise to use two TIdTCPClient compnents in an application?
Posted by:"F Alvarado" (f.alvara..@brainsoftware.net)
Date:Sun, 13 Jan 2008 23:57:41

I need to send and receive data to/from two different Hosts. Currently
I'm using only one component and closing the connection, changing Port
and Host properties, connecting sending data, receiving response and
closing connection. This occurs in short series (about 6 secs) of four
operations (Host A, Host B, Host B, Host A) at intervals of about 3 mins
all day long.
The problem is that my application resets without any warning/message
(even if I'm using try...except blocks everywhere) at random intervals.
I'd determined that it occurs when sending/receiving data in the 3th or
4th operation.
Any Ideas?
* Indy 9.0.18
* OS W2000
* Delphi 5 Ent
Best Regards

Francisco Alvarado

Replies:

www.cryer.info
Managed Newsgroup Archive