Program still running after close

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

    #1

    Program still running after close

    Hi All

    Using vb 2005

    I have noticed that sometimes (not everytime) after closing a program I
    have written it is still running in the task manager.

    The programs are very short, just small utilities for my job. I am
    using just the exe copied from the bin\release folder. I Have have also
    tried to publish and install and that produces the same problem.

    I am relatively naive programmer, I am sure there is something I am not
    including in the program that would clean up for me.

    Thanks in advance

    --
    Dave Griffiths
  • Dave Griffiths

    #2
    Re: Program still running after close

    I have just seen Kimiraikkonen post below I will follow that.

    --
    Dave Griffiths


    Dave Griffiths wrote:
    Hi All
    >
    Using vb 2005
    >
    I have noticed that sometimes (not everytime) after closing a program
    I have written it is still running in the task manager.
    >
    The programs are very short, just small utilities for my job. I am
    using just the exe copied from the bin\release folder. I Have have
    also tried to publish and install and that produces the same problem.
    >
    I am relatively naive programmer, I am sure there is something I am
    not including in the program that would clean up for me.
    >
    Thanks in advance

    Comment

    • Armin Zingler

      #3
      Re: Program still running after close

      "Dave Griffiths" <daveginorge@no spam.hotmail.co mschrieb
      I have just seen Kimiraikkonen post below I will follow that.
      I answer here because he uses the Express version (which I can not answer).
      If you don't, go into debug mode (Ctrl+Break), open the Threads window (not
      available in the Express version) and look at the callstack to see what the
      application is doing.


      Armin

      Comment

      • Dave Griffiths

        #4
        Re: Program still running after close UPDATE

        Hi All

        The first time the program is run it closes and the process is removed
        from the Task Manager List, however on the second execution of the
        program when it is closed it does not remove it'self from the Task
        manager List. Every execution afterwards leaves another process running.

        I can post the code if you wish. The utility is less than 60 lines.

        --
        Dave Griffiths


        Dave Griffiths wrote:
        Hi All
        >
        Using vb 2005
        >
        I have noticed that sometimes (not everytime) after closing a program
        I have written it is still running in the task manager.
        >
        The programs are very short, just small utilities for my job. I am
        using just the exe copied from the bin\release folder. I Have have
        also tried to publish and install and that produces the same problem.
        >
        I am relatively naive programmer, I am sure there is something I am
        not including in the program that would clean up for me.
        >
        Thanks in advance

        Comment

        • Tom

          #5
          Re: Program still running after close UPDATE

          It's not ideal, but a workaround for now would be to use:

          Application.Exi t()


          That will terminate your program (So make sure its saved everything
          first!)..


          Suprisingly enough i have never had this issue. Are both of you on Vista
          by any chance? (I hate vista and vb, it runs slower than my P4).



          Dave Griffiths wrote:
          Hi All
          >
          The first time the program is run it closes and the process is removed
          from the Task Manager List, however on the second execution of the
          program when it is closed it does not remove it'self from the Task
          manager List. Every execution afterwards leaves another process running.
          >
          I can post the code if you wish. The utility is less than 60 lines.
          >

          Comment

          • Dave Griffiths

            #6
            Re: Program still running after close UPDATE

            Hi Tom

            Yes I am on Vista but I have not noticed much of a degregation in speed
            but then I do have 4Gb Ram and a 2.4Ghz Intel Core2 CPU.

            Thanks for the suggestion I have just run the program on Win XP SP2
            machine and it behaves correctly.

            My next question is how do I report this problem to the powers that
            need to know and that can help resolve the issues.


            --
            Dave Griffiths


            Tom wrote:
            It's not ideal, but a workaround for now would be to use:
            >
            Application.Exi t()
            >
            >
            That will terminate your program (So make sure its saved everything
            first!)..
            >
            >
            Suprisingly enough i have never had this issue. Are both of you on
            Vista by any chance? (I hate vista and vb, it runs slower than my P4).
            >
            >
            >
            Dave Griffiths wrote:
            Hi All

            The first time the program is run it closes and the process is
            removed from the Task Manager List, however on the second execution
            of the program when it is closed it does not remove it'self from
            the Task manager List. Every execution afterwards leaves another
            process running.

            I can post the code if you wish. The utility is less than 60 lines.

            Comment

            Working...