Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. windows service

windows service

Scheduled Pinned Locked Moved C#
csharpquestion
26 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    Open services.msc. Right click on any service. You can see properties menu in pop menu. When you open properties of the service. you will see dependencies tab. Regards, Sunil G.

    T Offline
    T Offline
    tomorrow_ft
    wrote on last edited by
    #21

    no dependencies

    L 1 Reply Last reply
    0
    • T tomorrow_ft

      no dependencies

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #22

      Have you tried to change the start type of your to automatic.

      T 1 Reply Last reply
      0
      • L Lost User

        Have you tried to change the start type of your to automatic.

        T Offline
        T Offline
        tomorrow_ft
        wrote on last edited by
        #23

        anyway start type is automatic

        1 Reply Last reply
        0
        • T tomorrow_ft

          protected override void OnStart(string[] args) { inform("START");// for event log timer1.Start(); proccessorid();//I give all system info learnsystem(); }

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #24

          Get the learnsystem out of the OnStart; it doesn't belong there. OnStart must start the process and exit; that's all.

          T 1 Reply Last reply
          0
          • P PIEBALDconsult

            Get the learnsystem out of the OnStart; it doesn't belong there. OnStart must start the process and exit; that's all.

            T Offline
            T Offline
            tomorrow_ft
            wrote on last edited by
            #25

            where do I get it

            P 1 Reply Last reply
            0
            • T tomorrow_ft

              where do I get it

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #26

              Probably in the main part of the Service -- perhaps check to see whether or not the system is learned:

              If not learned
              Try to learn
              If failed, log and return
              Do stuff

              You could then periodically check for changes in the system, too.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups