Win32 service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marek Benes

    #1

    Win32 service

    Hi,
    we created win 32 service in C#. The win2k server on which this service is
    installed logs into eventlog message "Service <name> hung on starting" while
    te machine is booting. Nonetheless the service is OK and running. In
    OnStart() procedure we are just trying to read some settings from registry.
    Any ideas what's going wrong ?

    Thanks

    Marek Benes


  • Nicholas

    #2
    Re: Win32 service

    How many registry settings and how low does it take? You may consider
    reading these settings from a new thread.

    Nick


    "Marek Benes" <b_benny_b@cent rum.cz> wrote in message
    news:%234BQ81At DHA.3236@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Hi,
    > we created win 32 service in C#. The win2k server on which this service is
    > installed logs into eventlog message "Service <name> hung on starting"[/color]
    while[color=blue]
    > te machine is booting. Nonetheless the service is OK and running. In
    > OnStart() procedure we are just trying to read some settings from[/color]
    registry.[color=blue]
    > Any ideas what's going wrong ?
    >
    > Thanks
    >
    > Marek Benes
    >
    >[/color]


    Comment

    • Marek Benes

      #3
      Re: Win32 service

      We read just about three values. It's quite strange - after constructor of
      the service is finished, the method OnStart() is called almost 2 minutes
      later (we've written some info into eventlog).....

      M.B.

      "Nicholas" <nrholder@nospa m-hotmail-nospam.com> wrote in message
      news:OMLvzoLtDH A.1996@TK2MSFTN GP09.phx.gbl...[color=blue]
      > How many registry settings and how low does it take? You may consider
      > reading these settings from a new thread.
      >
      > Nick
      >
      >
      > "Marek Benes" <b_benny_b@cent rum.cz> wrote in message
      > news:%234BQ81At DHA.3236@tk2msf tngp13.phx.gbl. ..[color=green]
      > > Hi,
      > > we created win 32 service in C#. The win2k server on which this service[/color][/color]
      is[color=blue][color=green]
      > > installed logs into eventlog message "Service <name> hung on starting"[/color]
      > while[color=green]
      > > te machine is booting. Nonetheless the service is OK and running. In
      > > OnStart() procedure we are just trying to read some settings from[/color]
      > registry.[color=green]
      > > Any ideas what's going wrong ?
      > >
      > > Thanks
      > >
      > > Marek Benes
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...