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. turn off Server.exe

turn off Server.exe

Scheduled Pinned Locked Moved C#
csharpsysadminhelpquestion
9 Posts 5 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.
  • V Offline
    V Offline
    vunhat
    wrote on last edited by
    #1

    I have a file C#(window form),its name Server,I use method bind and listent of class socket,but after I turn off the dialogue,I turn on the task manager,I see it is running Why ? please help me

    help me

    X D H 3 Replies Last reply
    0
    • V vunhat

      I have a file C#(window form),its name Server,I use method bind and listent of class socket,but after I turn off the dialogue,I turn on the task manager,I see it is running Why ? please help me

      help me

      X Offline
      X Offline
      xibeifeijian
      wrote on last edited by
      #2

      Change the programe name and try again.Maybe you mix "Services.exe"(this is a windows process) as your program.

      :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)

      V 1 Reply Last reply
      0
      • X xibeifeijian

        Change the programe name and try again.Maybe you mix "Services.exe"(this is a windows process) as your program.

        :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)

        V Offline
        V Offline
        vunhat
        wrote on last edited by
        #3

        thanks for your answer,but actually,I know about Services.exe,I think it involed socket because when I run again,the program errored about the same port,IP I haven't decided yet

        help me

        Z 1 Reply Last reply
        0
        • V vunhat

          thanks for your answer,but actually,I know about Services.exe,I think it involed socket because when I run again,the program errored about the same port,IP I haven't decided yet

          help me

          Z Offline
          Z Offline
          zooozxxxz
          wrote on last edited by
          #4

          In the form_Closing Event write : System.Environment.Exit(System.Environment.ExitCode);

          V 1 Reply Last reply
          0
          • V vunhat

            I have a file C#(window form),its name Server,I use method bind and listent of class socket,but after I turn off the dialogue,I turn on the task manager,I see it is running Why ? please help me

            help me

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

            You have probably left some threads hanging that you didn't tag as background threads or you instantiated a COM server that you didn't shutdown properly before your app tried to quit.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            V 1 Reply Last reply
            0
            • Z zooozxxxz

              In the form_Closing Event write : System.Environment.Exit(System.Environment.ExitCode);

              V Offline
              V Offline
              vunhat
              wrote on last edited by
              #6

              thanks

              help me

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                You have probably left some threads hanging that you didn't tag as background threads or you instantiated a COM server that you didn't shutdown properly before your app tried to quit.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                V Offline
                V Offline
                vunhat
                wrote on last edited by
                #7

                which method to do this

                help me

                V 1 Reply Last reply
                0
                • V vunhat

                  which method to do this

                  help me

                  V Offline
                  V Offline
                  vunhat
                  wrote on last edited by
                  #8

                  sorry,maybe I found the answer

                  help me

                  1 Reply Last reply
                  0
                  • V vunhat

                    I have a file C#(window form),its name Server,I use method bind and listent of class socket,but after I turn off the dialogue,I turn on the task manager,I see it is running Why ? please help me

                    help me

                    H Offline
                    H Offline
                    Hesham Yassin
                    wrote on last edited by
                    #9

                    you need to stop the thread you started by joining them and if you don't have threads, you should close the clients Client.Close();:wtf:

                    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