CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Creating a new Process from a NT service

    Hi,
    I'm trying developping a NT service whose purpose is to start a new process after a specified time, wait for the process to exit normally & receive the return value in a pipe ... & continue again. It works fine when run in debug mode (i.e, as an exe ) but when registered as a service, it does all except creating the process. Can any one help me in this matter ? It's urgent.

    Thanks in advance,
    Mrinal


  2. #2
    Join Date
    Apr 1999
    Posts
    48

    Re: Creating a new Process from a NT service

    You should be able to debug it while it runs as a service. Start a debug version going as a service, start up Visual Studio, go to build\start debug\attach to process... menu .
    Then on the dialog click the "show system processes" checkbox and select your service.
    then you can break into it and look at the return codes while it's running to spot the problem.




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