task manager, app doesn't unload

  • Thread starter Thread starter ray well
  • Start date Start date
R

ray well

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
 
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

I have't the foggiest, but if you get an answer to this I'll be right
beside you reading it!!!

//al
 
Ray,

Undo some hardware memory from your computer, in a way that it is needed to
clean up the memory.

I hope that as long there is enough memory, the OS does not start with all
kind of not needed cleaning up processing, bringing down the processing
thime of my other applications.

Cor
 
al,


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
 
cor,

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
 
Back
Top