Re: Design Problem



On Mon, 6 Feb 2006 16:44:37 +1100, "Michael C"
<mculley@xxxxxxxxxxxxxxxxxxxxxx> wrote:

<snip>

Larry hit the mark - a bit more explanation is in order, but until then I
guess DoEvents and sleep is what you are after?

I'm guessing instructions are grouped into tasks, so while he needs to pause
task 1 he can start processing task 2.

My hunch is that there is a bunch of machines on the other end of the
COM Port, and that the 'instructions' contain a destination flag
- one machine is given a task
- while it is busy, he wants to send a task to another machine

If that is the case, then I think I can see a solution
- but ... more info would be helpful


.



Relevant Pages

  • Re: Re-entrancy???
    ... Sleep calls will just slow the application down. ... Whether or not PeekMessage is occuring in DoEvents ... has no impact on the overall CPU utilization. ... correctly, using the timeXXXX-APIs. ...
    (microsoft.public.vb.general.discussion)
  • Re: Batch file and MFC (Properly Terminating Application)
    ... I have a function called DoEvents ... Sleep fucntion is within that loop as well as DoEvents ... while(!GetQueuedCompletionStatus(port, &bytes, &key, timeout)) ... if timeout also check for abort ...
    (microsoft.public.vc.mfc)
  • Re: Query Unload issues
    ... Sleep kills your app for the duration specified. ... This is the opposite to DoEvents, ... due to the loop, which would not be required if you redesigned the ... If blnStop = True Then Exit Do ...
    (microsoft.public.vb.general.discussion)
  • Re: DoEvents() "Hangs"
    ... Get rid of DoEvents and get rid of Sleep, ... I did try removing the Sleep from the wait loop. ... GUI not responding to simple redraw messages. ... Personally I would also question the business requirement of having a user ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DoEvents() "Hangs"
    ... I did try removing the Sleep from the wait loop. ... GUI not responding to simple redraw messages. ... We remain puzzled that the DoEvents will work but then suddenly stop ... Personally I would also question the business requirement of having a ...
    (microsoft.public.dotnet.languages.csharp)