473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

task manager, app doesn't unload

on my developing system, when my app exits, it always gets removed withing a
second from the task manager. on my clients machine, the app exits but stays
indefinitely in the task manager.

i tried every which way to kill the process, i did all of the following to
no avail:

in the module whose sub main loads the form and then starts
Application.Run(), i made an exit sub, in whichi set the app form to
Nothing, i set the apps class to nothing, t then lookd for the apps process
to kill it by

Dim proc, procs() As Process

procs = Process.GetProcessesByName("MyAppName")

For Each proc In procs

proc.Kill()

Next

and finally i ended with

Application.Exit()

and still the app lives on in the task manager and eats up resouces, though
i can't see how it is running

without hiring a hitman, how do i kill off this app?

ray



Dec 6 '06 #1
4 1711
Hi,

This is a C# newsgroup, so your post isn't really appropriate. However,
your problem might be that you have a thread running that isn't set as a
background thread, which would prevent the AppDomain from being unloaded.

--
Dave Sexton

"ray well" <no****@nospam.comwrote in message
news:uA**************@TK2MSFTNGP05.phx.gbl...
on my developing system, when my app exits, it always gets removed withing
a second from the task manager. on my clients machine, the app exits but
stays indefinitely in the task manager.

i tried every which way to kill the process, i did all of the following to
no avail:

in the module whose sub main loads the form and then starts
Application.Run(), i made an exit sub, in whichi set the app form to
Nothing, i set the apps class to nothing, t then lookd for the apps
process to kill it by

Dim proc, procs() As Process

procs = Process.GetProcessesByName("MyAppName")

For Each proc In procs

proc.Kill()

Next

and finally i ended with

Application.Exit()

and still the app lives on in the task manager and eats up resouces,
though i can't see how it is running

without hiring a hitman, how do i kill off this app?

ray



Dec 6 '06 #2
The only reason I could think off right now that your appdomain will not
shutdown is that you have running foreground threads. Comparing the two
systems are there any big differences between the hardware? And more
specific like you having a Dual Core CPU and the customer not or something
like that? It could be a lot of things causing this behaviour.

Maybe you should post your main method.

Gabriel Lozano-Morán

"ray well" <no****@nospam.comwrote in message
news:uA**************@TK2MSFTNGP05.phx.gbl...
on my developing system, when my app exits, it always gets removed withing
a second from the task manager. on my clients machine, the app exits but
stays indefinitely in the task manager.

i tried every which way to kill the process, i did all of the following to
no avail:

in the module whose sub main loads the form and then starts
Application.Run(), i made an exit sub, in whichi set the app form to
Nothing, i set the apps class to nothing, t then lookd for the apps
process to kill it by

Dim proc, procs() As Process

procs = Process.GetProcessesByName("MyAppName")

For Each proc In procs

proc.Kill()

Next

and finally i ended with

Application.Exit()

and still the app lives on in the task manager and eats up resouces,
though i can't see how it is running

without hiring a hitman, how do i kill off this app?

ray



Dec 7 '06 #3
gabriel,

thanks for your suggesting.

i found the problem, i had my class shut down procedure attached to an exit
button, but forgot to attach it to the alt F4, clicking close on the control
box, and clicking the upper right x, which my client was using but just told
me he was closing the program and i assumed he was clicking the exit
button..

i now directed my exit button to the Closing event in which i placed my
class shut down process, and everything is just fine.

ray
Dec 7 '06 #4
dave,

i know this is c# group, but it wasn't a vb specific question but a general
problem, and i found that this c# group has smarter people that have answers
when the vb group hasn't a clue.

thanks for your suggesting.

i found the problem, i had my class shut down procedure attached to an exit
button, but forgot to attach it to the alt F4, clicking close on the control
box, and clicking the upper right x, which my client was using but just told
me he was closing the program and i assumed he was clicking the exit
button..

i now directed my exit button to the Closing event in which i placed my
class shut down process, and everything is just fine.

ray
Dec 7 '06 #5

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

Similar topics

4
by: Jaans | last post by:
I have a problem that relates to running "cleanup" code when an application is forcibly ended using the "End Process" of "Task Manager" (Please note that this is very different from "End Task"...
2
by: ramialhasan | last post by:
I got used to use VB ACTIVEX EXEs and when using the compiled EXE and instantiate it the EXE name appears on both tabs of Task Manager(Applications and Processes). But when using the ATL EXE...
6
by: rodchar | last post by:
hey all, i'm trying to use Windows' Task Manager to kick off my win form. Am I correct to say that this is not going to work because everytime it runs I see it task manager but no window ever...
10
by: shiry | last post by:
Hi, I need to do some important cleanup before my console application exists. I used the console ctrl event. This is working well and it fires for all cases, including the CTRL_CLOSE_EVENT (if I...
6
by: Marcus | last post by:
Hi, I am a newbie at C#. Here is my current problem: I want my application to iterate through the list of tasks presented in task manager. I want it to look at the task names and if a certain...
4
by: Strah | last post by:
Is there a way to catch the event of terminating the application from the the processes tab in task manager? I have created windows app, and if a user termintates the app in the task manager,...
4
by: ray well | last post by:
on my developing system, when my app exits, it always gets removed withing a second from the task manager. on my clients machine, the app exits but stays indefinitely in the task manager. i...
3
by: Inbox.Mirror.Orbisoft | last post by:
In the last 1-3 weeks, we have had numerous users of Task Manager 2007 (www.orbisoft.com) complain that they can no longer export certain reports (Task Manager 2007 uses a Sagekey.com Access 97...
3
by: =?Utf-8?B?U3RldmUgQmFya2Vy?= | last post by:
Hi guys, I know this post isn't strictly related to the forum topic, but it's such a general question that I didn't know where else to post it! Feel free to suggest a more suitable alternative!...
4
by: e-Ricc | last post by:
Hi guys! Im trying to detect when a user "kills" my c# app using windows task manager, i've tried with the form events _closing and _closed managing for example putting an if inside to detect...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.