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. help in windows services

help in windows services

Scheduled Pinned Locked Moved C#
helpcsharpadobequestion
4 Posts 3 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.
  • J Offline
    J Offline
    jacal99
    wrote on last edited by
    #1

    Hi i have make an windows services in c# ... the code is running ok ... there is no error in that .... in my code i am trying to hook the keyboard and save all the pressed keys in a txt file ... on services start it has to make a txt file and when the service stop it has to make one more txt file but on start it is not meaking any file but on stop it is meaking a file ... i don't know what is the problem with it ... i can send you my code if you can solve my this problem ... ok seea byee waiting for a flash reply ... Maz.:-O Mazhar Hussain

    D 1 Reply Last reply
    0
    • J jacal99

      Hi i have make an windows services in c# ... the code is running ok ... there is no error in that .... in my code i am trying to hook the keyboard and save all the pressed keys in a txt file ... on services start it has to make a txt file and when the service stop it has to make one more txt file but on start it is not meaking any file but on stop it is meaking a file ... i don't know what is the problem with it ... i can send you my code if you can solve my this problem ... ok seea byee waiting for a flash reply ... Maz.:-O Mazhar Hussain

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You might want to double check the code that is opening and writing that first file. Maybe your handling and burying an expection that is being returned when the file is opened. You might want to check the Event Log for any errors and you might want to modifiy your code to report any handled exceptions to the Event Log to make it easier to debug your service. You can check out Debugging Windows Service Applications[^] on MSDN for more information. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You might want to double check the code that is opening and writing that first file. Maybe your handling and burying an expection that is being returned when the file is opened. You might want to check the Event Log for any errors and you might want to modifiy your code to report any handled exceptions to the Event Log to make it easier to debug your service. You can check out Debugging Windows Service Applications[^] on MSDN for more information. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        S Offline
        S Offline
        SandeepN
        wrote on last edited by
        #3

        Can you pls send code to me. I don't say I will solve the problem but I want to give it a try Sandeep Naik sandeep_n75@hotmail.com

        J 1 Reply Last reply
        0
        • S SandeepN

          Can you pls send code to me. I don't say I will solve the problem but I want to give it a try Sandeep Naik sandeep_n75@hotmail.com

          J Offline
          J Offline
          jacal99
          wrote on last edited by
          #4

          hi i add you on my msn messenger ... and i am waiting for you to come online and have a chat with you on it ... Maz Mazhar Hussain

          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