Home All Groups Group Topic Archive Search About

task manager, app doesn't unload

Author
6 Dec 2006 7:45 PM
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

Author
7 Dec 2006 3:34 AM
al jones
On Wed, 6 Dec 2006 14:45:30 -0500, ray well wrote:

Show quoteHide quote
> 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
Author
7 Dec 2006 11:56 PM
ray well
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
Author
7 Dec 2006 5:16 AM
Cor Ligthert [MVP]
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

Show quoteHide quote
"ray well" <nospam@nospam.com> schreef in bericht
news:%23vn098WGHHA.3976@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
>
>
>
>
>
>
>
>
Author
8 Dec 2006 12:01 AM
ray well
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