Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Doevents force impacting performance
Message
 
 
À
20/08/2010 05:52:06
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:
01477509
Vues:
67
>Hi all,
>
>I have a difficulty with an application heavy-duty cpu-intensive process (pdf building partly delegated to COM-based stuff) that works fine on both XP and Vista (dev and production machines).
>
>On our demo win7 machine, the process starts up fine. But once the initial run-up is made, the "windows 7" dispatcher just reduces the the cpu-allocation to something below 5%. Improving priority at run time just does not help. The task is considered as something low-cpu
>
>A process that would take 15 mn takes 2 hours ... I possibly track it down to the massive use of "DOEVENT FORCE" to keep the main forms responsive throughout the process. Locking the UI up the old way is certainly not an option!
>
>Any way I can keep the application responsive and WIN7 alert to the resource requirements of this task? This routine is no plain stuff! WinXP does it nicely:) Why iWin7 ain't doing it so?
>
>Any feedback welcome!

There was a trick to make faster DoEvents (to issue MOUSE statement right after it).

Take also a look at ParallelFox project at CodePlex.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform