Re: [fpc-pascal] Suspending app

2005-06-23 Thread Tomas Hajny
Darius Blaszijk said: > Hi, > > I have an app that checks several files continuously and when the fileage > has changed the app performs some instructions. I have put the checks in a > loop. The drawback is that the processor is now 100% loaded. I could use > the > FindFirstChangeNotification API o

Re: [fpc-pascal] Suspending app

2005-06-21 Thread Michael Van Canneyt
On Tue, 21 Jun 2005, Darius Blaszijk wrote: > Hi, > > I have an app that checks several files continuously and when the fileage > has changed the app performs some instructions. I have put the checks in a > loop. The drawback is that the processor is now 100% loaded. I could use the > FindFirst

Re: [fpc-pascal] Suspending app

2005-06-21 Thread SteveG
perhaps create a thread for your file checking code, and Sleep(xx) regularly to release the processor ? Darius Blaszijk wrote: Hi, I have an app that checks several files continuously and when the fileage has changed the app performs some instructions. I have put the checks in a loop. The draw

[fpc-pascal] Suspending app

2005-06-21 Thread Darius Blaszijk
Hi, I have an app that checks several files continuously and when the fileage has changed the app performs some instructions. I have put the checks in a loop. The drawback is that the processor is now 100% loaded. I could use the FindFirstChangeNotification API on windows. But is there a crossplat