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

Reduce CPU load 2

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
I have an app that loops through a specified directory and its sub directories and catalogs them to a database.

While this is running task manager shows it as not responding. Can this be stopped from happening?

Also is it possible to force an app to not run at a high priority ie can i stop the loop from using 90% of my cpu? set it to low priority or somthing?

cheers guys
 
m_blnCommandPressed = False

'//And then:

While Not m_blnCommandPressed
...
...
Wend

'//Or:

Do While Not m_blnCommandPressed
...
...
Loop

'//Or;

Do
...
...
While Not m_blnCommandPressed




private sub cmdStop_Click
m_blnCommandPressed = True
end sub

Greetings,
Rick
 
Sorry; last one should read Loop While Not m_blnCommandPressed

Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top