473,545 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
+ 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 4301
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*********@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

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.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.
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.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.
Aug 5 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3989
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 program... Do I need to do anything in the code handle the shut down? Yours, Jonas
5
5297
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 these files, I wish to do the same using another python code instead of running each of these files one by one, which would be cumbersome giving the...
8
6433
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 closes. Dim FORM1 As New Form1 Dim FORM2 As New form2 Sub main() FORM1.Show() FORM2.Show()
27
2057
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 exe is still in use--I find it is still a process in Task Manager. What do I need to do to make clicking that X actually end the program? ...
0
1105
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 the program. To do this i am "piping" information back and forth between DOS and VB.NET. I also want to make the user able to abort and/or pause...
0
1368
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 was still running. Thanks for your help, steve -----Original Message----- From: Fredrik Lundh
7
2191
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 get the following error. The title of the window is: 16 bit MS-DOS Subsystem c:\WINDOWS\system32\cmd.exe -tc The NTVDM CPU has encountered an...
37
4998
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 redirect stderr to a temporary file (or /dev/null but is there an equivalent under Windows? Is it "nul:") and then to *restore* the default stderr so that...
1
2051
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 example posted below, the hardware configuration dialog. My problem is, that sometimes when I close the executed program / application / dialog, my...
9
2906
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 the text files from the watched folder line by line into variables and then posting them to a SQL table. All of the code for the form is shown...
0
7410
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7668
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7437
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5984
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4960
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3466
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.