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 / C++ / MFC
  4. Windows service problem

Windows service problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpjavatutorialquestion
5 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.
  • Y Offline
    Y Offline
    Yashusid
    wrote on last edited by
    #1

    I have created a Service exe thro VS6.0 Wizard and i am running a batch file from Run() method, in this batch file i am running java.exe. It runs and functions correctly but if i kill java.exe thro task manager the service exe is still running. How to make service exe also to exit when java.exe is no longer running ? Any help would be appreciated... Please help me....

    S M 2 Replies Last reply
    0
    • Y Yashusid

      I have created a Service exe thro VS6.0 Wizard and i am running a batch file from Run() method, in this batch file i am running java.exe. It runs and functions correctly but if i kill java.exe thro task manager the service exe is still running. How to make service exe also to exit when java.exe is no longer running ? Any help would be appreciated... Please help me....

      S Offline
      S Offline
      songjacky
      wrote on last edited by
      #2

      That must be virus . Attention!. Check using nortorn anti 2007

      Y 1 Reply Last reply
      0
      • S songjacky

        That must be virus . Attention!. Check using nortorn anti 2007

        Y Offline
        Y Offline
        Yashusid
        wrote on last edited by
        #3

        which is virus ?

        1 Reply Last reply
        0
        • Y Yashusid

          I have created a Service exe thro VS6.0 Wizard and i am running a batch file from Run() method, in this batch file i am running java.exe. It runs and functions correctly but if i kill java.exe thro task manager the service exe is still running. How to make service exe also to exit when java.exe is no longer running ? Any help would be appreciated... Please help me....

          M Offline
          M Offline
          myshketer
          wrote on last edited by
          #4

          if you are run your Java app. with CreateProcess(Ex) you can use WaitForSingleObject(). other variant is in scanning processes list for looking your java app.

          Y 1 Reply Last reply
          0
          • M myshketer

            if you are run your Java app. with CreateProcess(Ex) you can use WaitForSingleObject(). other variant is in scanning processes list for looking your java app.

            Y Offline
            Y Offline
            Yashusid
            wrote on last edited by
            #5

            yeah this is a very good idea... Thanks a lot!!!

            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