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

Clarion 5.5 running in the background without to many cycles

Status
Not open for further replies.

gonzalezw

Programmer
Feb 25, 2002
4
US
I am trying to write a small program in Clarion 5.5 where it will monitor for a file to be place in a predefine directory. WHen the files gets there then I want clarion to execute a routine. I think that if I use the LOOP and the IF EXIST statement, the program will still all the CPU cycles and the PC won't be able to do much else. Does anyone knows how to write a routine or a 3rd party interface that will allowed me to do this without using to many resources from the PC.

Thanks W.G.
 
The CPU cycle consuption is most likely on the disk I/O. Place a conting loop or elapsed time test routine in your code so that the routine will "sleep". Your application will still require CPU cycles but my guess is that they will be more friendly to the OS.

HTH
 

I think that the easiest way is to setup the Window's TIMER property, and fill the embed code of TIMER events!

Set some FLAG variable to check if the window will look for new files or not.

If the FLAG varible is disable put some YIELD statement to allow others programs interative!.

Bye.! -----
carabez@hotmail.com
 
Why not make an custom event and check it trough an ACCEPT loop... which loops anyway ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top