Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2008, 09:48 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The Task Scheduler does the things you were asking, but an application run this way isn't as robust as a Windows service - particularly regarding unattended operation, which is really the crux of what you are trying to do. It's a good temporary work-around, but I'd make it very clear via documentation and emails that this should not be considered a permanent solution.

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
My blog... please visit
 
Old April 29th, 2008, 01:53 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

What are the pitfalls with this approach?
 
Old April 29th, 2008, 05:03 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One important issue is if the app crashes there is no mechanism for restarting it. A service can be automatically restarted, or have other actions taken, such as rebooting the computer or running a specific file for logging, sending emails, running diagnostics, etc.

There are administration tools for checking the status of windows services, as well as for doing things such as starting and stopping services remotely, and taking care of various logging requirements.

Also, it is much harder for a user to accidently stop a service. This is a problem only in cases where a user might be logged on to a system. The app you are discussing would show up in the task manager and if it has a user interface, it could be showing on the screen. The user could accidently or purposefully shut down the app.

There are other issues as well. Essentially it all comes down to robustness of the solution.





Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
My blog... please visit





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Auto Start Windows Service virendar23 C# 2005 3 September 15th, 2011 03:16 PM
How to Auto Start Windows Service virendar23 .NET Framework 2.0 5 April 18th, 2008 11:43 AM
Can't start my app in tomcat xpan Apache Tomcat 3 January 7th, 2007 05:26 AM
SQL Server "Service Manager" Auto Start Problem. khalidumer SQL Server 2000 0 May 18th, 2004 09:21 AM
auto start smukher Pro VB 6 2 October 15th, 2003 01:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.