We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

Medium Priority
301 Views
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....


Comment
Watch Question

High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
CERTIFIED EXPERT
Top Expert 2009
Commented:
I haven't played with it...but have to tried placing DoEvents after your call to Send()?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.