Re: how to stop a running process



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
.



Relevant Pages

  • Re: how to stop a running process
    ... >>I am a newbie. ... > Perhaps your thread is hogging the CPU. ... select the process and kill it. ... remove the underscores from my email address (and please indicate which newsgroup and message). ...
    (microsoft.public.pocketpc.developer)
  • RE: csrss.exe using a lot of CPU time
    ... Thank you for posting to the SBS Newsgroup. ... I understand that you notice that csrss.exe is consuming 50% CPU usage on ... server to see whether there is any third party interference. ... Security Update for Microsoft Windows ...
    (microsoft.public.windows.server.sbs)
  • RE: Multiple processors
    ... Thank you for posting in SBS newsgroup. ... You can add a processor to a Windows 2003 server/SBS 2003. ... want to add another CPU, you can just power off the server, plug the other ... server hardware supports dual-CPU before setting up SBS 2003). ...
    (microsoft.public.windows.server.sbs)
  • Re: AutoNew or AttachAs "name??" to create file name from data
    ... Please reply to the newsgroup unless you wish to avail yourself of my ... Jay about this and he is convinced the code will not execute to kill the file ... Dim Doc As Document ... Dim DocPathName As String ...
    (microsoft.public.word.vba.general)
  • RE: CPU and Services
    ... Thank you for posting to the SBS Newsgroup. ... much CPU, and you cannot start one service in the services console. ... we suggest that customers contact Microsoft Product Support Services ...
    (microsoft.public.windows.server.sbs)

Quantcast