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. How to terminate a process gently

How to terminate a process gently

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialannouncement
10 Posts 4 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.
  • C Offline
    C Offline
    chenxiujie
    wrote on last edited by
    #1

    Hello, Process A want Process B to quit. How to do can give the Process B enough time to do something release. Please give me some suggestion, thank you !

    S J 2 Replies Last reply
    0
    • C chenxiujie

      Hello, Process A want Process B to quit. How to do can give the Process B enough time to do something release. Please give me some suggestion, thank you !

      S Offline
      S Offline
      Sam Hobbs
      wrote on last edited by
      #2

      Have you seen MS KB article 178893 ("HOWTO: Terminate an pplication "Cleanly" in Win32")?

      C 1 Reply Last reply
      0
      • S Sam Hobbs

        Have you seen MS KB article 178893 ("HOWTO: Terminate an pplication "Cleanly" in Win32")?

        C Offline
        C Offline
        chenxiujie
        wrote on last edited by
        #3

        Thank you for your replay, please tell me where can I get the article,"MS KB" means what?

        S M 2 Replies Last reply
        0
        • C chenxiujie

          Thank you for your replay, please tell me where can I get the article,"MS KB" means what?

          S Offline
          S Offline
          Sam Hobbs
          wrote on last edited by
          #4

          Microsoft has recently changed the way to do that, or at least it has been changed temporarily. So the way to do it at the moment is to go to the Advanced Search and put the article id in the "For" box and select "Article Id" in the "Search Type" box.

          1 Reply Last reply
          0
          • C chenxiujie

            Hello, Process A want Process B to quit. How to do can give the Process B enough time to do something release. Please give me some suggestion, thank you !

            J Offline
            J Offline
            Jun Du
            wrote on last edited by
            #5

            I normally implement an IPC between A and B. Let A notify B and allow B to exit itself gracefully. Best, Jun

            C S 2 Replies Last reply
            0
            • J Jun Du

              I normally implement an IPC between A and B. Let A notify B and allow B to exit itself gracefully. Best, Jun

              C Offline
              C Offline
              chenxiujie
              wrote on last edited by
              #6

              Thank you!

              1 Reply Last reply
              0
              • C chenxiujie

                Thank you for your replay, please tell me where can I get the article,"MS KB" means what?

                M Offline
                M Offline
                Michael Dunn
                wrote on last edited by
                #7

                KB = knowledge base. The article is here: Q178893[^]

                --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer

                1 Reply Last reply
                0
                • J Jun Du

                  I normally implement an IPC between A and B. Let A notify B and allow B to exit itself gracefully. Best, Jun

                  S Offline
                  S Offline
                  Sam Hobbs
                  wrote on last edited by
                  #8

                  That assumes that the developer has access to the source code and such for both processes. If that had been said originally, then I would have replied with an answer more appropriate for that.

                  J 1 Reply Last reply
                  0
                  • S Sam Hobbs

                    That assumes that the developer has access to the source code and such for both processes. If that had been said originally, then I would have replied with an answer more appropriate for that.

                    J Offline
                    J Offline
                    Jun Du
                    wrote on last edited by
                    #9

                    You posted a good answer; just different assumptions. :) Best, Jun

                    S 1 Reply Last reply
                    0
                    • J Jun Du

                      You posted a good answer; just different assumptions. :) Best, Jun

                      S Offline
                      S Offline
                      Sam Hobbs
                      wrote on last edited by
                      #10

                      I would not say that I made assumptions; I think my intent was to clarify the question; in other words, I did not want to make assumptions. I have seen many times vague questions becoming huge discussions when the person asking the question does not clarify the question. So I agree that people should not assume.

                      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