Re: Semi-multithreaded application in VB6



"Steve Gerrard" <mynamehere@xxxxxxxxxxx> writes:

> Question for you: where are you doing your DoEvents? The user won't be able to
> intervene except where you yield enough to let a button click get through. That
> would seem to be the place for your flag check as well.

There are a number of wait times in the cycle. You are raising a good
point here. If there is only a chance of a click event to get through
during those wait times it doesn't make sense to check this flag.

But, there is also a sub called by a timer periodically that might set
it. I presume your point is true for timer events as well.

And there are calls to dll functions that take some time to complete.
I don't know whether they block processing of events or not.

Matthias
.



Relevant Pages

  • Re: When will DJ stop going on and and on and on and just
    ... this flag does not make it ... mandatory that slower cars must move over for the leader of the race. ... straight from NASCAR: ... Cars being given this flag must prepare to yield to ...
    (rec.autos.sport.nascar)
  • Re: STA cannot prevent multiple client calls accessing at the same time??
    ... This is my literal understanding of the ... Client calls my method A, in Athere are calls to another COM object ... Is this the correct understanding of the word "yield"? ... > to flag the deletion request and do nothing further if you are ...
    (microsoft.public.vc.atl)
  • Re: Semi-multithreaded application in VB6
    ... > during those wait times it doesn't make sense to check this flag. ... I presume your point is true for timer events as well. ... the timer control event won't fire until you call DoEvents or the current ... progress and allow cancelling. ...
    (comp.lang.basic.visual.misc)
  • Re: How to escape out of a loop
    ... doevents in VisualBasic or VBA will not stop a loop at any ... We get the same functionality by the settimer called subs. ... can then change the Boolean flag variable. ...
    (microsoft.public.scripting.vbscript)
  • Re: How to escape out of a loop
    ... doevents in VisualBasic or VBA will not stop a loop at any ... We get the same functionality by the settimer called subs. ... can then change the Boolean flag variable. ...
    (microsoft.public.scripting.vbscript)