Re: VFP9 design question(s)

2007-03-30 Thread Ted Roche
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

Re: VFP9 design question(s)

2007-03-30 Thread Derek Kalweit
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

RE: VFP9 design question(s)

2007-03-30 Thread Rick Schummer
Hi Bill, Not sure about the BindEvents() solution, but I implemented a timer-based one as you noted. It was designed to meet 200 requests in a day (nothing by anyone's standards). It polled the folder every minute when the timer triggered. I tested the solution I created with several hundred

Re: VFP9 design question(s)

2007-03-30 Thread Bill Anderson
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

Re: VFP9 design question(s)

2007-03-30 Thread Bill Anderson
Derek Kalweit wrote: What's wrong with the traditional timer-based file-detection approach? I've very successfully implemented performance-critical complex apps with this method and it's never been a problem. If you need a responsive GUI for it, you can always put DOEVENTS in your loop...

Re: VFP9 design question(s)

2007-03-30 Thread Bill Anderson
Rick Schummer wrote: Hi Bill, Anyway, I don't see any reason to get all fancy with BindEvents() when a timer works just fine. The only advantage to BindEvents() is to get instant processing instead of waiting until the next timer event. I think for the first shot out of the gate, I'll

Re: VFP9 design question(s)

2007-03-30 Thread MB Software Solutions
Ted Roche wrote: 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