Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Doevents force impacting performance
Message
From
30/08/2010 06:41:36
 
 
To
20/08/2010 07:50:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01477485
Message ID:
01479180
Views:
65
Hi Thomas,

"Have you tried to fire the "Doevent Force" only about every 0.3 seconds() via a bracketing if ? Might be enough ..."

Did not help:(

However triggering the "progressbar" refresh via a timer instead of base code did the trick. Thanks a lot.

The vfp-based exe now drags 50% percent of the CPU. In view of the current power available on workstations this definitely enough even for process-intensive processes...

PS: thanks for all the contributions on potential rewriting that would include multi-threading. This was enlightening but requires too much work at this time. And not exactly what I am looking for i-e avoiding that the active main UI thread basically "gets idle" (cpu usage grinding to a halt or near so) on win7 because of the "doevent force".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform