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

Posted on 2007-07-20
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 85

    Accepted Solution

    I haven't played with it...but have to tried placing DoEvents after your call to Send()?

    Author Comment

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Title # Comments Views Activity
    Help with my python script 6 135
    sumHeights  challenge 17 50
    Saving history changes to sub form 4 17
    VBA filters 2 22
    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now