Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Doevents force impacting performance
Message
De
30/08/2010 06:41:36
 
 
À
20/08/2010 07:50:05
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01477485
Message ID:
01479180
Vues:
66
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".
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform