Ted Roche wrote: > On 3/30/07, Bill Anderson <[EMAIL PROTECTED]> wrote: > >> From VFP I can get a message from Windows that a file has been placed >> within a directory and in theory pass it off to the handler to process >> it. I haven't written the handler portion (I'll get there) but in theory >> the handler will try to open the file, process it, delete the file for >> all files in the directory. >> >> Comments, thoughts, better design ideas? >> >> > > Long time, no see, Mr. Anderson. > > I'd suggest you recieve the message and log it to a queue (a DBF), > then return to waiting. Either with a separate process, or with a > timer in the same, scan the queue, determine if there's more work to > be done, do it, and remove the entry from the queue. That way, if > someone drags a dozen files into the folder (or a hundred), VFP > doesn't fall over. > > Separate out the message reciept from the processing. > Oh, I'm around, but mostly on [NF]...
Thanks for the cogent reply. You're right of course -- separate the communications from the handling. Passive Observer! Bill Anderson _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox|<[EMAIL PROTECTED]> ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

