Menu

#104 Error TCPClient

open
nobody
None
5
2002-02-01
2002-02-01
No

The TCPClient's event 'OnReceive' is not being called.
I start a CLX application on Delphi 6 and I use the
TCPClient component. And I set the BlockMode
to 'bmNonBlocking'.

The aplication is very simple, it only have a button
to connect to a Server, a button send a message to
server.
I hope when the server response the event OnReceive to
be called so the application process the message from
the server.

I can connect to the server and send the message. Then
the server proccess the message and send a response.
The message is never received by the Client. I put a
button and force the read of the TCPClient but I found
nothing to read.

I make a copy of the CLX application and then change
it to a VCL application that uses a TClientSocket and
the event ClientRead is triggered when the server send
the response.

Some one have an idea of what is happening?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB