T
Tom Simpson
I have set up a Windows service in VB.NET, and created a
'Service Manager' Windows Forms app that can 'get'
information from that service. The service consists of the
basic service 'framework' along with a large class that I
wrote that actually does all the work. The Service Manager
app uses .NET remoting to get info into/back from the
service.
I have a couple of questions that I need info on before I
complete this service:
1. When you do a Stop and Start, does the service actually
get unloaded out of memory then reloaded back in? From what
I understood, a service get 'loaded' when the
server/computer starts up, and then is 'started' when the
Start command is issued. However, I saw some comments out
there that seemed to say the service actually gets unloaded
from memory when STOP is called.
2. Is there a way I can tap into when the service actually
first gets loaded? The reason I ask is that I would like to
be able to instantiate my base class object and turn on
remoting at this time. That way, even if the class starts
up as 'Stopped' my service manager app can still get info
back from the service itself. Then the Start command can
actually just start up the timer and do whatever it needs
to do.
Thanks!
Tom
--
'Service Manager' Windows Forms app that can 'get'
information from that service. The service consists of the
basic service 'framework' along with a large class that I
wrote that actually does all the work. The Service Manager
app uses .NET remoting to get info into/back from the
service.
I have a couple of questions that I need info on before I
complete this service:
1. When you do a Stop and Start, does the service actually
get unloaded out of memory then reloaded back in? From what
I understood, a service get 'loaded' when the
server/computer starts up, and then is 'started' when the
Start command is issued. However, I saw some comments out
there that seemed to say the service actually gets unloaded
from memory when STOP is called.
2. Is there a way I can tap into when the service actually
first gets loaded? The reason I ask is that I would like to
be able to instantiate my base class object and turn on
remoting at this time. That way, even if the class starts
up as 'Stopped' my service manager app can still get info
back from the service itself. Then the Start command can
actually just start up the timer and do whatever it needs
to do.
Thanks!
Tom
--