Hi all.
The  components  list  is  a wee beauty. It really makes the job a lot easier to
control.  Also the system is running very smoothly now. The job was to monitor a
bunch  of  directories  (not just a directory monitor with subfolders selected).
Hence I needed various copies of the folder monitor. My original attempt worked,
but  it  kept  the system too busy and I have never been happy with my boots and
braces programming effort there.
Thanks again.
Al+

Next question! How do I determine when the hard disk is not being used. For
example, when there is a change to determined folders, I do not want the monitor
to activate until it has finished working. Tried to use onidle, but the
application.ProcessMessages; or any loop make it busy!


  //eliminate double operations by tickccount
  tics := GetTickCount;
  while (gettickcount - Tics < 1000) or (not IsIdle) do application.ProcessMessages;
  IsIdle:=false;


procedure TMainform.IdleHandler(Sender: TObject; var Done: Boolean);
begin
IsIdle:=True;
end;

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to