My understanding of FindCloseChangeNotification is that, if the remote system (that it has been set up to monitor) goes down for a while and then comes back up, the notification "subscription" is not automatically renewed (i.e., the FindCloseChangeNotification process has to be reinitialised) and, as such, any changes to the remote system will not register. The Delphi 6 provided component wrapper of FindCloseChangeNotification, called TShellChangeNotifier, **may** handle this, but you would have to verify this.
-Andreas -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, 14 August 2002 11:03 To: Multiple recipients of list delphi Subject: RE: RE: [DUG]: How do I create a passive listner in Delphi? 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/ --------------------------------------------------------------------------- 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/