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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CLIPPER S87 EXE using 100% CPU on XP 1

Status
Not open for further replies.

ZoDra

Programmer
Oct 27, 2005
36
SI
Hi!

My EXE is using practically all available cpu on win xp. Starting two applications of mine is still working but significally slover, starting third is impossible (hav a package of applications 6 forming whole application).

I installed OSLIB.LIB and tried using OL_AUTOYIELD function, which is supposed to return all nonneeded cpu time back to OS but I get two unresolved :
1. __EVDEREGRECEIVER
2. __EVREGRECEIVERFUNC

Does anybody know what is wrong? (hope it is not my S87 compiler, do not have time to go to 5.xx)

regards
 
Hi, ZoDra

This one has been pretty extensively discussed here, if you do a search with keyword "idle" or "wait state" you will get a ton of hits.

Thread 288-191093 has a lot of good references.

Personally, I don't even bother recompiling - just set up the prog to execute from a shortcut, edit the .pif and on the MISC tab set the idle sensitivity to high and that reduces the cpu to 20-40%. I have a DOS window configured on my desktop to use command.com as the interpreter for just that purpose (set up a shortcut to c:\windows\system32\command.com, edit the properties and set the idle sensitivity). However the other solutions in that thread are more elegant and portable.

Jock
 
Thanks JockMullin!

Pif's are OK I know that. I never thought of putting idle into serch engine (problem is in fact busy, or not). I will try searching with suggested key.

Drago
 
Hi Drago,

Have you tried "Dosidle" i have been using this for 3-4 years now....Search for "Dosidle" & if you find "Dosidle.obj" keep this file in app folder

and call this function like "Dosidle()" in your main function...

Laadi

 
Hi everyone!

Many thanks, I have tried both pif and dosidle. After a while (2 or three minutes) I get slightly better results (lower cpu) with dosidle, however this window is respondig also slightly slower but I am not too sure.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top