943,545 Members | Top Members by Rank

Ad:
Oct 23rd, 2008
0

How to delete project's exe file from taskmanager

Expand Post »
Dear Sir,
My project uses Ms Access as back end tool and visual basic as front end tool.
I have a problem when i run my project's tmgmt.exe file more than one time then it shows tmgmt.exe file entry into taskmanager's process tab.
Suppose i used that file 4 times then it shows 4 times entry in to taskmanager's process tab.

When it is use on single pc(on my pc) then there is no problem but when i run tmgmt.exe file from another pc through sharing then it shows file already in used. To remove this problem i always delete tmgmt.exe process from taskmanager where it is run last time.


Then please tell me the way how can i setup my programme which can capable of delete tmgmt.exe process from taskmanager at the time of exiting from programme/project.

Please help me it's urgent.

Thank you


Pardeep
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
pardeep3dec is offline Offline
87 posts
since Jul 2008
Oct 24th, 2008
0

Re: How to delete project's exe file from taskmanager

Sounds to me as though your program isn't actually exiting. Task manager's processes tab show programs that are running. If your program shows up there, it hasn't properly exited. Look through your code and find the section where you tell it to exit (This is usually in Form_Unload() ). If you don't see:

some code here
End
some code here

then your program isn't exiting properly because you haven't told it to close everything and clean up. So it's just sitting there in the background, waiting for input. While VB is pretty smart about a lot of things, this is one thing you have to be specific about. Just because none of the windows are open doesn't mean the program isn't running - and VB is designed so that people can design programs with *no* windows at all. So using the End statement is essential.

Hopefully that helps you out. If you need more help, feel free to ask. Good luck!

- Sen
Reputation Points: 16
Solved Threads: 1
Light Poster
sendoshin is offline Offline
39 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VB6 and the mosewheel!!
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Microsoft Speech 5.1 in Vista





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC