OnStart is an "event" that gets called when your Service is initiated, to do
initialization etc. You would typically start a thread there (ThreadStart
for some method you run) that runs until some event happens, you trigger
that event in OnStop().
--
Phil Wilson [MVP Windows Installer]
----
"ThunderMusic" <NOdanlatSPAM@hotmaildotcom> wrote in message
news:...
> Hi,
> I have a service which is only a server for some objects the user can
> instanciate and call.
>
> Right now, the service starts and then stops automaticaly. The only line
> of code I added is in the OnStart event and is
> "RemotingConfiguration.Configure(configfile)". So I guess the service is
> stopping because it has nothing better to do?
>
> Is there a setting I can set to prevent it from stopping? will I have to
> start a loop that will run until the OnStop event runs in order to keep
> the service alive?
>
> Thanks
>
> ThunderMusic
>
|