>>Denis,
>>
>>>Cool! .. is there exist a WMI Query to ask about process CPU utilization? For example, to get an information about my application process only.
>>
>>If your app is a VFP app there are basically only 2 CPU utilization factors.. less than 1% (when it's sitting at a wait state) and 100% (when it's running code). *bg*
>
>:)))
>David,
>I describe my problem. I wrote Tapi + winsock solution. My application perfect work.. but SOMETIMERS.. it begin using 90% of CPU... And I can't catch the moment when it happen and what fail in application.
>At this reason, I want to place timer which will check CPU ... and if app during long period take CPU time I want to run coverage profiler and shutdown app.. then look in log - which process make this sh...t..
So David's actually right - you need a WMI function which would return a logical. If it returns a .f., no worry, it's below 1%. If it returns .t., it's close to 100%. Rest of the time it must be some other process, not Fox :).