Zootal
Thu Apr 12 02:43:36 CDT 2007
Taskmgr does not show very much memory being used, nor is there a trend of
increasing memory. I tend to think it's not a memory issue. Timers can eat
up cpu if you are not careful, but I've not found them to use memory.
I once had a VFP 24/7 app with a memory leak - after about a week it would
exhaust all physical memory and the swap, and crash. I used Serverdoc
(www.serverdoc.com) to restart it at 3am every day. Worked great. I can
always use that here if I have to. I've used VFP for 24/7 apps for years,
and this is the first time I've seen a timer just up and stop after a while.
It's possible there was some other error that I didn't see...need to play
with this more.
"swdev2" <wsanders@dotnetconversions.bob.com> wrote in message
news:%23A%23ArxMfHHA.284@TK2MSFTNGP05.phx.gbl...
> Are you limiting your memory usage via code in VFP ?
> Some SYS call, iirc.
> The Timer can be a resource hog, but I replaced most of my timer code
> with the SLEEP api call, or I use a scheduling program
> called Automate from NetWork Automation (formerly Unisyn Technologies)
>
> see
http://www.networkautomation.com/ - there's a 30 day free trial.
>
> Before da rest of you flame me about using the scheduler in the OS -
> This program handles recurring jobs, file drop activation,
> and a whole lot more.
>
> Regards [Bill]
>
> --
> ===================
> William Sanders / EFG VFP / mySql / MS-SQL
> www.efgroup.net/vfpwebhosting
> www.terrafox.net www.viasqlserver.net
>
> "Zootal" <Don't send me any freaking spam at zootal dot com remove the
> don't
> send me any freaking spam> wrote in message
> news:uoig5MMfHHA.596@TK2MSFTNGP06.phx.gbl...
>> I have a *very* simple app that runs 24/7. A timer fires once a minute,
> and
>> all it does is copy files from point A to point B. Repeat. After a couple
> of
>> days of running, it appears that the timer just stops running, and I have
> to
>> restart the app to get it going again. There is no excessive cpu
>> consumption, no excessive memory or handles or any resources that I can
> see.
>> I ran it on a local hard drive and pointed it's source and destination to
>> the local hard drive to make sure there were no network issues causing
>> problems. No joy. After a few days, it just stops. Anyone else ever run
> into
>> this? I'm working on making it duplicateble, but it's time consuming
> because
>> it takes a few days to get it to stop.
>>
>> FWIW, I've run apps in VFP7 that ran 24/7 and had timers that fired
>> regularly, and it ran and ran and ran with no issues.
>>
>>
>
>