Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vfp 7.0 apps occupying 100% CPU

Status
Not open for further replies.

ConanCode

Programmer
Aug 6, 2002
10
0
0
US
I'm having problem with Visual Foxpro 7.0 Application running on Windows 2000 Professional. It's Occupying 100% of CPU with only a few Select and Copy commands. Does anyone knows why and how to resolve this problem ?

Thanx.
 
Are you running with VFP 7.0 SP1? Has the Win 2000 been updated to SP 2 (or 3 if you're really on the leading edge)?

How much memory and what CPU are you running? What else is running? Any Virus Checkers?

Rick
 
That last one is very tricky. Norton anti-virus scans in dbf if checked. That can make your app. very slow.
 
Win 2k has been updated with SP3 and the PC is 700 MHZ with 256 megs of memory. Norton Antivirus Corporate Edition has been disabled. No luck.
 
Hi ConanCode,

If the problem begins right after the app is started, you could set some break-point in your code and check the Windows Task Manager Performance tab after the selected break-points to zero in zero in on the code that is causing the problem. I would suspect it would be some endless loop or maybe a timer is executing ever 1/1000 of a second or something like that.
Leland F. Jackson, CPA
Software - Master (TM)
Nothing Runs Like the Fox
 
Hi Leland,

There are no timer object on this form. The code uses Select and Copy statements and in the process, updating the progress bar. The progressbar function only update one of the shape object base upon the percentage of completion. No endless loop here.

Thanks for the helpful thought.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top