[Last Call] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2007-07-20
Medium Priority
Last Modified: 2013-11-13
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....

Question by:smmsmm57
LVL 86

Accepted Solution

Mike Tomlinson earned 2000 total points
ID: 19531720
I haven't played with it...but have to tried placing DoEvents after your call to Send()?

Author Comment

ID: 19531798
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question