RE: Polling App

2006-12-20 Thread John Weller
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Richard Kaye Sent: 19 December 2006 12:41 To: [EMAIL PROTECTED] Subject: Re: Polling App We have someagent programs that do just this. A timer wakes them up periodically and they check for any work to do

RE: Polling App

2006-12-20 Thread Sietse Wijnker
-sample and it's workable though it needs some work to implement it in a real-world app. Sietse -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jaime Vasquez Sent: woensdag 20 december 2006 5:19 To: [EMAIL PROTECTED] Subject: Re: Polling App Sietse

RE: Polling App

2006-12-19 Thread John Weller
That's basically the same as option 2. I was concerned that VFP would hog too much of the system resources and hoping someone would have experience of a similar situation and could advise me if it does. John Weller 01380 723235 07976 393631 Write a small simple VFP program that utilitizes the

Re: Polling App

2006-12-19 Thread Peter Cushing
John Weller wrote: That's basically the same as option 2. I was concerned that VFP would hog too much of the system resources and hoping someone would have experience of a similar situation and could advise me if it does. Hi John, I run a kind of polling app that services email and print

RE: Polling App

2006-12-19 Thread Malcolm Greene
John, Christof wrote a wonderful article in FoxPro Advisor that explains how to do exactly what you want to do. Complete with code! I think there may be similar code up on www.news2news.com? Worth checking out. Malcolm snip Monitor File Changes from Visual FoxPro

RE: Polling App

2006-12-19 Thread Jeff Johnson
John: I have several different apps that do this sort of thing. One runs as a service on a server. Here is the main program of the project: * turn off NT login services =SYS(2340, 1) *normal setup stuff DO SetEnv ON ERROR DO errhand WITH ; ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ),

RE: Polling App

2006-12-19 Thread Nick Cipollina
Write a small simple VFP program that utilitizes the VFP timer, and then turn it off while in your processing routine (when the flag condition is met), then turn it back on as you exit the processing routine. What's wrong with that idea? Is this one of those if it sounds too good to be true,

Re: Polling App

2006-12-19 Thread Richard Kaye
We have someagent programs that do just this. A timer wakes them up periodically and they check for any work to do. They run 24/7/365. On one server we are currently running 7 instances. 0 CPU while sleeping. Each one uses a little over 1MB of RAM while idle. John Weller wrote: That's

RE: Polling App

2006-12-19 Thread Malcolm Greene
Nick, We have an app that essentially does this, except we don't turn the timer off while processing. The problem with this approach is that it frequently hangs, and since it is written in FoxPro it has to run in the foreground. That is why we are in the process of re-writing it as a .Net

Re: Polling App

2006-12-19 Thread Paul Newton
Richard Kaye wrote: We have someagent programs that do just this. A timer wakes them up periodically and they check for any work to do. They run 24/7/365. I've always wondered why people use expressions like that. I can understand 24/7, 24/7/52 (almost), 24/365 (or more precisely 24/365.25

Re: Polling App

2006-12-19 Thread Richard Kaye
Sorry. Didn't mean to be obscure. 24 hours a day, 7 days a week, 365 days a year. Now it's time for someone to point out that I'm taking off leap day... g Paul Newton wrote: I've always wondered why people use expressions like that. I can understand 24/7, 24/7/52 (almost), 24/365 (or more

Re: Polling App

2006-12-19 Thread Jean Laeremans
On 12/19/06, Richard Kaye [EMAIL PROTECTED] wrote: Sorry. Didn't mean to be obscure. 24 hours a day, 7 days a week, 365 days a year. Now it's time for someone to point out that I'm taking off leap day... g he already did...or more precisely 24/365.25 g), A+ jml

RE: Polling App

2006-12-19 Thread Jim Dettman
John, I've used option #1 as a more simplistic approach to this type of thing. To avoid the problem you mentioned, I use an OS semaphore to indicate that the program is running. It sets the semaphore, pauses, then checks that it has the only semaphore set. If so, it continues. If not,

RE: Polling App

2006-12-19 Thread Jim Dettman
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean Laeremans Sent: Tuesday, December 19, 2006 10:09 AM To: [EMAIL PROTECTED] Subject: Re: Polling App On 12/19/06, Richard Kaye [EMAIL PROTECTED] wrote: Sorry. Didn't mean to be obscure. 24 hours a day, 7 days a week

Re: Polling App

2006-12-19 Thread Jean Laeremans
On 12/19/06, Jim Dettman [EMAIL PROTECTED] wrote: he already did...or more precisely 24/365.25 Actually, he didn't, or at least not precisely. The year is not quite 365.25, which is why every 100 years, if a year is divisible by 4, it is not a leap year, except when it is divisible by

Re: Polling App

2006-12-19 Thread MB Software Solutions
Sietse Wijnker wrote: Another solution I'm also using is a small .NET app that reacts to evnts and writes a message to a message-queue which in its turn is monitored by a VFP application. I did something like this years ago in the late 90s where I devised a solution for running MS-Word Mail

Re: Polling App

2006-12-19 Thread MB Software Solutions
Nick Cipollina wrote: Write a small simple VFP program that utilitizes the VFP timer, and then turn it off while in your processing routine (when the flag condition is met), then turn it back on as you exit the processing routine. What's wrong with that idea? Is this one of those if it

Re: Polling App

2006-12-19 Thread MB Software Solutions
Malcolm Greene wrote: Calvin Hsia's blog has code that allows you to build NT services using VFP. I did this several years ago with VFP 7 and VFP 8 with excellent results. There's no reason why you shouldn't be able to build robust NT Services using VFP. Except that it's not cool to

Re: Polling App

2006-12-19 Thread Jaime Vasquez
Sietse Wijnker wrote: I'm using filesystem events to react to a file create/change in similar cases. The only problem is binding to them, but I've written a .NET ActiveX thet does that for me. Use that inside a VFP form and I'm able to write VFP code to react to the events. The vfp9's

RE: Polling App

2006-12-19 Thread Sietse Wijnker
I'm using filesystem events to react to a file create/change in similar cases. The only problem is binding to them, but I've written a .NET ActiveX thet does that for me. Use that inside a VFP form and I'm able to write VFP code to react to the events. Another solution I'm also using is a small

Re: Polling App

2006-12-18 Thread MB Software Solutions
John Weller wrote: Hi Guys, I have to write a small utility that will check for the presence of a file or files in a particular folder every 5 minutes or so. If any are there it does some processing on them. It will probably run on the server. As I see it there are two ways I can go: 1.

RE: Polling App

2006-12-18 Thread Hal Kaplan
= Subject: Polling App =  = Hi Guys, =  = I have to write a small utility that will check for the = presence of a file or files in a particular folder every 5 = minutes or so. If any are there it does some processing on = them. It will probably run on the server. As I see it = there are two