473,467 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Aug 5 '07 #1
5 4293
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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: BadOmen | last post by:
I am using Win XP and when I exit my program by clicking the X it locks like it is closed but if I check the Activity Handler( I don't know the right English word for it) it is still there under...
5
by: Shalen chhabra | last post by:
Hey, Can anyone give me a snippet for running a python program over all the files in the directory. For ex: I have ten files in a directory and I want to run a python program against all of...
8
by: koorb | last post by:
I am starting a program from a module with the Sub main procedure and I want it to display two forms for the program's interface, but when I run the program both forms just open and then program...
27
by: cj | last post by:
I run this program and to exit click the X in the upper right corner. But apparently it isn't really ending the program. If I return to VB and make changes then try to rebuild the app it says the...
0
by: FaroeIslander | last post by:
Hello all. I am currently working on a program in VB.NET where the user can run a "hidden" DOS program and as the program is running the user can see how many computations have been performed by...
0
by: Steve Ingram | last post by:
Found out what I'd done, and it wasn't py2exe causug the problem. I wasn't closing the main dialog properly, I was calling Close() instead of Destroy(), so the dialog stayed in memory, basically it...
7
by: kunal | last post by:
Hello Friends, I am facing a strange problem which i would like to share with you people and get ur ideas and knowledge about it. Whenever i try to run a C++ program after successfully compiling i...
37
by: Vince C. | last post by:
Hi all. I've installed Bloodshed Dev-C++ on a Windows 2000 SP4 machine. I'm using MinGW 3.4.2. I'd like to temporarily disable standard functions to write to stderr, i.e. for instance...
1
by: sewid | last post by:
Hi there! I've got a problem with no solution, I hope you might help me. I am writing a small tool with many buttons. Every button starts a thread and this thread starts something else, in the...
9
by: Keith G Hicks | last post by:
I'm having a lot of trouble with "file in use" errors in my "folder watcher" project. Starting and stopping the watcher and reading my XML file work fine. Once the watcher is started, I'm reading...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.