|
-
June 17th, 2009, 05:21 PM
#1
[RESOLVED] Can't kill my process to rebuild the app
I've got a Visual Studio project which builds a program in Debug mode, say Program.exe.
Apparently after one of my recent runs, Windows got it into its head that Program.exe was still running even after I closed it. Now it won't let me build the latest code changes since it won't overwrite the executable.
I tried the task manager first, of course. "End Process" did absolutely nothing----it asks its "are you sure" bit, I click yes, and the process is still there.
After some Googling I downloaded a utility called pskill which is supposed to deal with these situations, but it didn't manage to accomplish anything either.
Restarting is not an option at present because I've got a Linux terminal open with another program running there, and I don't want to interrupt it.
Any suggestions? I know I can change the built program name, but I don't really want to do that either for various reasons.
-
June 17th, 2009, 05:40 PM
#2
Re: Can't kill my process to rebuild the app
Hi Lindley,
Try using SystemInternal process explorer (now part of Microsoft)
http://technet.microsoft.com/en-us/s...s/bb896653.asp
With ProcessXP when you zoom in on a particular process you can see who is using it.
I believe that you should be able to 'kill' the process using this utility.
Hope it helps
Doron
Last edited by Doron Moraz; June 17th, 2009 at 06:11 PM.
Reason: http://
-
June 17th, 2009, 06:19 PM
#3
Re: Can't kill my process to rebuild the app
The link doesn't work. Also, since pskill comes from the SysInternal group, I'm not really optimistic about something else of theirs faring any better.
-
June 17th, 2009, 08:19 PM
#4
Re: Can't kill my process to rebuild the app
It's probably the Linux running messing things up. :-)
It could be that one of the associated build processes are interfering. Make sure they are all closed and then retry taskmgr (using the process list tab, not the application tab).
-
June 17th, 2009, 08:20 PM
#5
Re: Can't kill my process to rebuild the app
 Originally Posted by Arjay
It's probably the Linux running messing things up. :-)
It could be that one of the associated build processes are interfering. Make sure they are all closed and then retry taskmgr (using the process list tab, not the application tab).
Btw, all those programs use TerminateProcess under the covers - so if task manager doesn't do it...
-
June 18th, 2009, 02:39 AM
#6
Re: Can't kill my process to rebuild the app
i had the same issues... did u use ntqueryobjects or any similar function?
local or remote linux terminal?
-
June 18th, 2009, 03:37 AM
#7
Re: Can't kill my process to rebuild the app
 Originally Posted by Lindley
The link doesn't work.
Ooops: http://technet.microsoft.com/en-us/s.../bb896653.aspx
 Originally Posted by Lindley
Also, since pskill comes from the SysInternal group, I'm not really optimistic about something else of theirs faring any better.
Regardless to the process killing, ProcessXP will allow you to see who is using program.exe....
Reagrds
Doron
-
June 18th, 2009, 04:00 AM
#8
Re: Can't kill my process to rebuild the app
If the process is attached to a debugger, task-manager may not end the process.
Have you put code that self-starts itself, using some other process?
-
June 18th, 2009, 08:21 AM
#9
Re: Can't kill my process to rebuild the app
The Linux terminal is just a Putty session to a remote machine. It's not involved in the problem, it's just the reason I don't want to restart.
I tried attaching to the troublesome process with a debugger, but it said "cannot attach to crashing process" or something like that.
The given process *may* be CreateProcess'd by another program, but I don't recall if it was in this instance or not and I'm not sure what that would have to do with it.
-
June 18th, 2009, 08:57 AM
#10
Re: Can't kill my process to rebuild the app
That means the process is attached with a debugger. The process has caused some exception that is causing some debugger (like Dr. Watson) to be attached with this process.
And if you are only concerned about generating new EXE, you can just rename the outfile in project settings. True, that's not optimal solution. You need to look up what's holding the process/crashing-process.
AFIAK, Process Explorer doesn't show if debugger is attached.
-
June 18th, 2009, 09:19 AM
#11
Re: Can't kill my process to rebuild the app
 Originally Posted by Ajay Vijay
AFIAK, Process Explorer doesn't show if debugger is attached.
It actually does.
Find->Handle or DLL substring
-
June 18th, 2009, 09:50 AM
#12
Re: Can't kill my process to rebuild the app
 Originally Posted by Ajay Vijay
That means the process is attached with a debugger. The process has caused some exception that is causing some debugger (like Dr. Watson) to be attached with this process.
Wow, that must have been it. I closed all my instances of Visual Studio and the process finally went away! Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|