dot not app not quitting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    dot not app not quitting

    Hi

    I have noticed when I close my vb.net app, it is still visible under
    processes in task manager? Why is that and how can I ensure complete closure
    of app?

    Thanks

    Regards


  • Jon Skeet [C# MVP]

    #2
    Re: dot not app not quitting

    On Jun 28, 2:42 pm, "John" <J...@nospam.in fovis.co.ukwrot e:
    I have noticed when I close my vb.net app, it is still visible under
    processes in task manager? Why is that and how can I ensure complete closure
    of app?
    It's very hard to say without more information.

    Could you provide a short but complete program which demonstrates the
    problem?

    Jon

    Comment

    • Armin Zingler

      #3
      Re: dot not app not quitting

      "John" <John@nospam.in fovis.co.ukschr ieb
      I have noticed when I close my vb.net app, it is still visible under
      processes in task manager? Why is that and how can I ensure complete
      closure of app?
      How many threads do you have? How did you terminate the threads? The process
      closes as soon as all threads have finished. In a UI thread, you have to
      leave the message loop (explicitly: started by Application.Run , stopped by
      Application.Exi tThread. Implicitly: started by VB if you specify a Form as
      the startup object, stopped by closing the Form).

      Goint into Pause mode and having a look at the threads window and at the
      call stack should reveal what your app is doing.


      Armin

      Comment

      • Phillip Taylor

        #4
        Re: dot not app not quitting

        On Jun 28, 2:42 pm, "John" <J...@nospam.in fovis.co.ukwrot e:
        Hi
        >
        I have noticed when I close my vb.net app, it is still visible under
        processes in task manager? Why is that and how can I ensure complete closure
        of app?
        >
        Thanks
        >
        Regards
        You probably have a hidden form which isn't unloaded.

        Are you sure that your not using form.hide() when you should be using
        form.close() ?

        if you've got an exit button, or a main form that should end the
        application when closed you can use this line to exit the program:

        Application.Exi t()

        Comment

        • Vadim Chekan

          #5
          Re: dot not app not quitting

          John wrote:
          Hi
          >
          I have noticed when I close my vb.net app, it is still visible under
          processes in task manager? Why is that and how can I ensure complete closure
          of app?
          >
          Thanks
          >
          Regards
          >
          >
          Attach to the application in visual studio, pause it, open threads
          window and see which threads are active and what they are doing. This
          might give you some hints.
          Are any threads created in your application?

          Comment

          Working...