On Tue, Aug 11, 2015 at 2:25 AM, Fernando D. Bozzo <[email protected]> wrote: >> > And isn't easier to put the EXE on the Start folder, so it executes when > Windows starts, and keep in memory as a TSR?
Easier, yes. > Why the need to shut it down and start up all the time? Well, there are tradeoffs. VFP consumes resources, and you'll need to be careful not to trigger a memory leak, runaway CPU loops or never-closed temp files, all of which you avoid in the simple invoke-run-close script model. You're probably going to need to invoke the Windows API Sleep functions to minimize CPU load, and you'll want to unload all the tables so that they can be updated, packed and reindexed outside of the reminder app. So why keep taking up memory? Scripts are simpler to update (just replace it, no need to have a service interface to start, stop and shutdown a service). Schedule changes can be handled with the Scheduled Tasks UI, a feature you don't have to write, nor debug. If it runs for 5 seconds every 5 minutes, and doesn't need to run all night or on weekends (my assumption) then you ought to schedule it to run to the 1/60th of the time in 40% of the schedule it's needed. VFP is designed to be used as a full-screen, interactive CRUD database tool. If you really only need a simple script to check to see if an item is scheduled and launch a reminder, you're not using all the power of VFP, nor using it for what it was intended. but it's better as a simple invoked script than a Windows service, imo. > It simply can hide, wait and show when it's time, user close it (hideing, > not real close) and start all over again. That is an alternate design, with the advantage of quick startup, in exchange for memory and CPU consumption. A different sent of tradeoffs.One design may win out over the other depending on specifics of the original poster's situation. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CACW6n4vsZYFJVXRip+i50=c-9cd-yenksolu3wr7ytelysn...@mail.gmail.com ** 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.

