Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CPU Utilization
Message
From
11/07/2006 03:21:51
 
 
To
11/07/2006 03:12:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 2000
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01135216
Message ID:
01135219
Views:
12
>Hi,
>I have created one backgroud application without any UI.
>Application is using 1 timer control. The application simply checks one folder for file & if file is there update VFP6.0 database.
>
>but it consumes even more than 50% of CPU. cpu utilisation is very fluctuating..
>
>Anybody knows the reason & can provide the solutions/suggestions.
>
>Ritesh

If you upgrade to VFP9, you can use Bindevent to read the windows internal messaging system, meaning that you don't need any timer at all. You can program VFP to react to any change you want, for example if a new file is added to a directory, you will know immediately, no timer involved. This means that your application will use 0% CPU unless the change you monitor happens. Upgrade, and your work will become so much easier.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform