[twsocket] OnClientDataAvailable

2005-10-02 Thread Robert Haditama
Hi, I am using threaded twsocketserver, and the logic is similar to ThrdSrv (the example application). There are about 30 clients connected, and send periodically 1 message until in total about 100 messages. For every message, the server should retrieve, update, or insert some data to oracle databa

Re: [twsocket] OnClientDataAvailable

2005-10-03 Thread Robert Haditama
Thanks for the quick respond. > Make sure that you never call > Application.ProcessMessages (Or > Showmessage()) from your OnClientDataAvailable > handler. No, there is no ProcessMessages or ShowMessage. > Also, remember > that if you send two messages from your client: > > Hi > there > > T

Re: [twsocket] OnClientDataAvailable

2005-10-03 Thread Robert Haditama
--- Wilfried Mestdagh <[EMAIL PROTECTED]> wrote: > Hello Robert, > > If I understeand whell it seems that you receive a > particular packet > double ? This is impossible with TCP. > No, its not double. Example : at 14:00:01, client 1 send the 97th message. (1st message to 96th message is rece

Re: [twsocket] OnClientDataAvailable

2005-10-03 Thread Robert Haditama
> So there is something wrong between the point where > the client log it > and the point where the server log it. Please veryfy > then with > SocketSpy. OK, i will. But i suspect maybe there is something 'wrong' in server's message pump (i am using ics messageloop). Can i put a log on the message

Re: [twsocket] OnClientDataAvailable

2005-10-03 Thread Robert Haditama
Just now, fortunately, i can repeat the situation so that the problem raise. Using the log in the onclientdataavailable, i see that when the client send the 98th, the server receive the 97th message (that's already been processed before). Client send the 99th, server receive the 97th (again) and th