I wasn't aware polling would take so little CPU time, which is good. However, I'm still trying to understand what the disadvantages are of using a downloadable component based on FindCloseChangeNotification?
Cheers, Dave -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 14 August, YYYY 11:02 To: Multiple recipients of list delphi Subject: Re: RE: [DUG]: How do I create a passive listner in Delphi? >Thanks Ben, but not sure I'm fully understanding. My purpose is to listen >for email text files created by a legacy system in a directory. As soon as >one appears, I want the Delphi exe to read in the file, create a new email >in Outlook and send it out. Both the email directory and the Delphi exe, >will be on servers, though not the same server. For the Delphi exe, I will >arrange for it to be run on bootup. I've got an app that does pretty much exactly the same thing - only it Uses INDY instead of Outlook ( eugh :p ). It's polling every five seconds, and the CPU usage only goes up to 1% when doing so (this is on a AMD-K6/500, W2K). If you're worried about network trafic maybe only look every 10-20 seconds? --------------------------------------------------------------------------- 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/ --------------------------------------------------------------------------- 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/