By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,320 Members | 2,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,320 IT Pros & Developers. It's quick & easy.

Program still running after close

P: n/a
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
Aug 5 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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
Aug 5 '07 #2

P: n/a
"Dave Griffiths" <da*********@nospam.hotmail.comschrieb
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

Aug 5 '07 #3

P: n/a
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
Aug 5 '07 #4

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

Application.Exit()
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.
Aug 5 '07 #5

P: n/a
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.Exit()
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.
Aug 5 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.