Re: Question about DoEvents
- From: "Lance Wynn" <LanceWynn@xxxxxxxxxxxxxxxx>
- Date: Wed, 8 Feb 2006 20:13:48 -0700
Thanks for the reply,
I just needed some outside opinion about it so I wouldn't worry about it.
If the queue is processing, it will accept additional queue items, and will
return control to the client pretty instantly. The time I saw the problem,
there were no items in the queue for processing, and when I looked at the
doevents in the addItem method, it made me think that the doevents fired
just as the timer event was firing to check for additional items (which it
found as the item was added in the previous line)
Lance
"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:uDjDeoQLGHA.2668@xxxxxxxxxxxxxxxxxxxxxxx
"Lance Wynn" <LanceWynn@xxxxxxxxxxxxxxxx> wrote in message news:e5%
Now, this has been running for some time now without a problem, but the
other day, the client app was hung with the "Switch to/retry" box. The
only
external call from the client is made to add an item to the server's
queue.
I wonder if perhaps the doevents in the addToQueue sub in the server is
firing, and control is going to the timer event (If the timer event fires
at
the exact time an item is added) and then control will not be returned to
the addToQueue event until the processing is done (which can take several
minutes or more.)
I have removed the doEvents from the addToQueue method, and the problem
hasn't re-occurred, but it only happened the one time anyway, so I don't
know if I've fixed the problem or not. Is my diagnosis accurate as to
what
could be happening, or do you think I should keep digging around in there?
That sounds perfectly feasible, there is no reason to have DoEvents there
anyway. But wouldn't this happen if an item in the queue was running anyway?
Lance
.
- Follow-Ups:
- Re: Question about DoEvents
- From: "Peter Huang" [MSFT]
- Re: Question about DoEvents
- References:
- Question about DoEvents
- From: Lance Wynn
- Re: Question about DoEvents
- From: Michael C
- Question about DoEvents
- Prev by Date: Re: Question about DoEvents
- Next by Date: Docking using hWnd, is it possible?
- Previous by thread: Re: Question about DoEvents
- Next by thread: Re: Question about DoEvents
- Index(es):
Relevant Pages
|