Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

doevents force hangs

Status
Not open for further replies.

Olaf Doschke

Programmer
Oct 13, 2004
14,847
DE
I've recently had cases of coverage logging reporting macroscopic times >100 seconds on code lines being a [tt]DOVENETS FOCE[/tt].
What helped is having a MOUSE DRAG TO MROW()+1, MCOL()+1, so DOEVENTS FORCE and in the end Windows itself has an event to process.

It occurred on an application used on Win8+10 with touchscreen interface, where mouse is not used and finger touch actions are just mouseclicks without further events happening.
DOEVENTS FORCE still is necessary within DO WHILE loop is waiting for http responses.

So if you encounter that, perhaps worth a try to do. Maybe even a Windows bug about the event queue, at least as VFP adresses it with DOEVENTS FORCE.

Bye, Olaf.



Olaf Doschke Software Engineering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top