Re: A windows service question
- From: "Mike Lowery" <selfspam@xxxxxxxxxxxxxxxx>
- Date: Thu, 17 Aug 2006 12:27:20 -0700
I don't see why your app can't run as a service, so long as you design it
properly. You'll also have to make sure it runs under the proper Windows
account to access external data (like your database.)
Have a look at this program I wrote that runs as a Windows service:
http://spamgrinderprox.sourceforge.net/
"Gordon" <Gordon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7DE20DEA-EB59-4675-86CB-5F602A6719A9@xxxxxxxxxxxxxxxx
Hi;
I have developed a VB.net app in a module that queries a database, loads the
data into several arrays and then loops through the array. It then compares
time data stored in the array with the current system time. If there is a
match a program is then started. The apps purpose is be like the windows task
scheduler. And I want
to run it as service because it will run continuosly.
I can't seen to find an example of where an app like this is made a service.
Most
of the examples of candidates for services a like a special backup routine
or to
monitor a specific process.
So could I run my app as a service ?
If so do I transfer my code which now exists in the main() sub and a
function into
the service class of a service project ? Or can I call my module from the
OnStart Sub ?
Thanks for any insights,
--
Gordon
.
- Prev by Date: Re: VB 2005 Syntax
- Next by Date: Re: Programmatically Crawl a DLL's Namespacec
- Previous by thread: Document
- Next by thread: Re: A windows service question
- Index(es):
Relevant Pages
|