Re: A windows service question



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


.



Relevant Pages

  • Re: Is CArray best for this...
    ... I often have cases where the size of the array is not known when you start ... puting elements into it. ... "foreign" to windows. ... necessarily to the domain-specific sensibilities of Windows app developers. ...
    (microsoft.public.vc.mfc)
  • Re: Color management
    ... iPhoto is halfway decent for managing digital photos, but there is no proper way to make the pictures print the way they look on screen. ... Seems incredible that Apple would include an app like iPhoto with the mac and not allow proper printing of color. ... Apps don't need to explicitly support ColorSync in OS X. ...
    (comp.sys.mac.advocacy)
  • how to properly reparent mdi child from vb6 to vb.net
    ... The problem is that both the original and the newer app are MDI ... I can reparent the mdichlid windows from the older app to the newer app, ... proper child window of the newer frame windows. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Color management
    ... proper way to make the pictures print the way they look on screen. ... Seems incredible that Apple would include an app like iPhoto with the ... Apps don't need to explicitly support ColorSync in OS X. ...
    (comp.sys.mac.advocacy)
  • Re: Color management
    ... iPhoto is halfway decent for managing digital photos, but there is no proper way to make the pictures print the way they look on screen. ... Seems incredible that Apple would include an app like iPhoto with the mac and not allow proper printing of color. ... Apps don't need to explicitly support ColorSync in OS X. ...
    (comp.sys.mac.advocacy)