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.GetProc essesByName("My AppName")
For Each proc In procs
proc.Kill()
Next
and finally i ended with
Application.Exi t()
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 4 1321
"ray well" <no****@nospam. comwrote in message
news:u%******** **********@TK2M SFTNGP05.phx.gb l...
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.GetProc essesByName("My AppName")
For Each proc In procs
proc.Kill()
Next
and finally i ended with
Application.Exi t()
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?
All of which begs the question as to why you need to do this. Kill() is a
last resort. It should be used sparingly.
With such a mindless loop can you really be certain that you are not
killing, or trying to kill, something important?
Is it that you are trying to shutdown the system? If so, there are better
ways.
Regards,
Will
"William DePalo [MVP VC++]" <wi***********@ mvps.orgwrote in message
news:ua******** ******@TK2MSFTN GP04.phx.gbl...
"ray well" <no****@nospam. comwrote in message
news:u%******** **********@TK2M SFTNGP05.phx.gb l...
>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.Ru n(), 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.GetProc essesByName("My AppName")
For Each proc In procs
proc.Kill()
Next
and finally i ended with
Application.Ex it() 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?
All of which begs the question as to why you need to do this. Kill() is a
last resort. It should be used sparingly.
With such a mindless loop can you really be certain that you are not
killing, or trying to kill, something important?
No, the OP is trying to kill only applications with a particular process
name ("MyAppName" ).
Try attaching a debugger to the zombie task and see what threads are running
and where.
>
Is it that you are trying to shutdown the system? If so, there are better
ways.
Regards,
Will
"Ben Voigt" <rb*@nospam.nos pamwrote in message
news:OA******** ******@TK2MSFTN GP06.phx.gbl...
>With such a mindless loop can you really be certain that you are not killing, or trying to kill, something important?
No, the OP is trying to kill only applications with a particular process
name ("MyAppName" ).
My bad. Well then that's better.
Still, if the target is something written by the OP there are better ways to
go.
And if it is not, it's at best rude, at worst risky.
Regards,
Will
"William DePalo [MVP VC++]" <wi***********@ mvps.orgwrote in message
news:uU******** ******@TK2MSFTN GP03.phx.gbl...
"Ben Voigt" <rb*@nospam.nos pamwrote in message
news:OA******** ******@TK2MSFTN GP06.phx.gbl...
>>With such a mindless loop can you really be certain that you are not killing, or trying to kill, something important?
No, the OP is trying to kill only applications with a particular process name ("MyAppName" ).
My bad. Well then that's better.
Still, if the target is something written by the OP there are better ways
to go.
I believe the OP already said the app had been told to exit, but it was
hanging. He needs to attach a debugger to the app while it's hung to find
out what went wrong in the exit path.
>
And if it is not, it's at best rude, at worst risky.
Regards,
Will
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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" since end task sends a message to the
application, requesting it to close)
My real problem is that our application makes entries into a database when
the application starts, and then corresponding entries when the application
closes ("cleanup")....
|
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
produced by ATL .NET (unmanaged) I can see the application name in the
Processes tab only, and the it is not viewed in the Applications Tab.
Is there any thing to do to make it visible in the Applications Tab of
the Task Manager.
Regards,
Rami
|
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 shows.
no way around this?
thanks,
rodchar
|
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 close the
application from the X botton). But on
the contrary to what the MSDN indicates
(ms-help://MS.VSCC.2003/MS.MSDNQTR.2003OCT.1033/dllproc/base/handlerroutine.htm),
ending my process from the task manager did not fire the
CTRL_CLOSE_EVENT....
|
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, I'd like to be notified. I tried few combinations of Close, Closing,
Application.Exit method, ApplicationExit Event, etc, but nothing seems to be
working.
Thanks in advance
Strah@Langan
| |
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 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...
|
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 runtime) to
Excel 2003 or Word 2003 format.
They say they get an error message then both Task Manager 2007 and
Office 2003 shut down.
Any ideas why this is happening?
|
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! ;)
I'm having some very weird problems with Task Manager. When I open it now,
it doesn't show the tabs at the top to switch between processes, networking,
etc... Instead it appears as a flat window with no maximise/minimise buttons.
How would I...
|
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 it:
if (e.CloseReason == CloseReason.TaskManagerClosing)
{
MessageBox.Show("from task manager");
}
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |