Re: how to stop a running process
- From: r_z_aret@xxxxxxxxxxxx
- Date: Tue, 26 Apr 2005 18:11:08 -0400
On Tue, 26 Apr 2005 05:32:03 -0700, "mcruz"
<mcruz@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>I am a newbie. I am developing an application that uses threads to gather
>data from a socket. I am finding that my code somehow does not let the main
>UI thread do its job. so the screen (just for my application) does not
>respond.
>
Perhaps your thread is hogging the CPU. Does it call Sleep and/or
WaitForSingleObject (or something similar) to make it pause? If not,
that is a likely cause of the problem.
>Is there another way to just kill my application? i read on this newsgroup
>about sending the app a "kill message" if i have the applications "handle".
>i am hoping for something more like "taskmanager" or a way to list running
>processes on the PPC. select the process and kill it.
I believe your app should respond to WM_DESTROY so the operating
system can kill it, I _think_ this is a requirement for "Logo"
certification. It seems like good practice anyway. Probably similar
for WM_COMMANDS with IDOK and IDCANCEL, and/or WM_CLOSE. But, if your
main thread is hung or starved for CPU, it won't have a chance to
process any message you send it.
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com
.
- Follow-Ups:
- Re: how to stop a running process
- From: mcruz
- Re: how to stop a running process
- References:
- how to stop a running process
- From: mcruz
- how to stop a running process
- Prev by Date: Re: Error in Compile
- Next by Date: Re: Interprocess Communication
- Previous by thread: how to stop a running process
- Next by thread: Re: how to stop a running process
- Index(es):
Relevant Pages
|