CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 1999
    Location
    Chicago, IL
    Posts
    1

    NT service debugging

    I am developing a NT service using VC++ 6 and can't seem to figure out a way to test the thread that is supposed to do stuff. any help would be appreciated.


  2. #2
    Join Date
    Aug 1999
    Location
    Montreal, Quebec
    Posts
    27

    Re: NT service debugging

    What's your thread supposed to b doing?

    Maybe you could try to log the thread's activity in a text file or something of the sort.

    Or maybe you could try (it depends on what the thread is supposed to b doing) to run that part of the prog as a stand alone, see if it works and then implement the functions to make it a service. That is what I did with the service I'm "playing around" with right now. It's easier that way, I found.... Services aren't very easy, to start with!!!

    Good luck!

    Caroline



  3. #3
    Guest

    Re: NT service debugging

    Go to your registry where the service is installed. HKEY_LOCAL_MACHINE, SYSTEM, CURRENTCONTROLSET, SERVICES....your service. there is a value name called ImagePath. Double click this, and copy the last bits of it. Open VC6, go to Projects, settings, Debug. In Program argumants, paste the stuff in, add -debug to the end of the string, click OK.

    Then run your program, and make sure the service is stopped in SCM.

    Its that easy, if it doesnt work. Read Professional NT Services By Kevin "The man" Miller.

    Chikere Ezeh
    [email protected]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured