Re: [twsocket] OnClientDataAvailable

2005-10-03 Thread Dan
- Original Message - From: "Robert Haditama" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, October 03, 2005 12:14 PM Subject: Re: [twsocket] OnClientDataAvailable > Just now, fortunately, i can repeat the situation so > that the pro

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

Re: [twsocket] OnClientDataAvailable

2005-10-03 Thread Wilfried Mestdagh
Hello Robert, > But i suspect maybe there is something 'wrong' in > server's message pump (i am using ics messageloop). It is very basic, cannot go mutch wrong with it. I hope it is only called in the Execute method of your thread ? > Other question: what is exactly 'IsClient' do? Sorry I dont

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 Wilfried Mestdagh
Hello Robert, > I have, not only in the server, in the client also. > And the logs show that the client has sent the right > message (the 98th), the server has got it as the 98th > message, but it contains exactly the 97th. So there is something wrong between the point where the client log it and

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 Wilfried Mestdagh
Hello Robert, If I understeand whell it seems that you receive a particular packet double ? This is impossible with TCP. First of all check if it is the sender or the receiver that fails. You can easy check this with SocketSpy where you can log the traffic between them. If it is receiver, I sug

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-02 Thread Nicholas Sherlock
Robert Haditama wrote: >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 ins

[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