>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.