VB 6 timer interupt service routine preventing socket send method from firing right away...

In VB 6, I have a timer on a form. In its _timer method, I send data out on a Winsock to another vb app to which it is connected via the socket.....

I set breakpoints in the sockets .send method on the client as well as in the dataarrival method on the server.....

In spite of the fact that I invoke the send method from within a routine that is called from within the _timer method on the client and continue to single step thru the code, the dataarrival method on the server does not get woken up until I have left the _timer method on the client, which leads me to believe that socket send messages get queued up and are not actually sent until the timer method has exited.....

I am hoping this is easily explained and overcome since I'll need to re-design the thng if I cant get the socket send to actually "fire" while I am in the timer interrupt service routine....

Who is Participating?
Mike TomlinsonMiddle School Assistant TeacherCommented:
I haven't played with it...but have to tried placing DoEvents after your call to Send()?
smmsmm57Author Commented:
Yes...that worked MOST Excellent.....I guess I need to read up some more on how vb works.....the point is though, you gave me what I needed thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.