terminating a process on vista

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2006
Posts: 192
Reputation: nschessnerd is an unknown quantity at this point 
Solved Threads: 8
nschessnerd's Avatar
nschessnerd nschessnerd is offline Offline
Junior Poster

terminating a process on vista

 
0
  #1
Apr 24th, 2009
i have some code to kill a process
  1. TerminateProcess((HANDLE)sinfo->process->Handle, 0);
what happens is so the process freezes and starts eating up the processor... so i i try to terminate it, but it only goes white and that box pops up that says "bla bla bla" stopped working...
is there any way around this?
this.love(*);
&hea/rts;
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 390
Reputation: skatamatic will become famous soon enough skatamatic will become famous soon enough 
Solved Threads: 39
skatamatic skatamatic is offline Offline
Posting Whiz

Re: terminating a process on vista

 
-1
  #2
Apr 24th, 2009
Hmm I'm not to familiar with that command, but it could have something to do with Vistas rediculous overhead such as data execution prevention or some other security 'feature'
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 192
Reputation: nschessnerd is an unknown quantity at this point 
Solved Threads: 8
nschessnerd's Avatar
nschessnerd nschessnerd is offline Offline
Junior Poster

Re: terminating a process on vista

 
0
  #3
Apr 24th, 2009
this also happens on win7
this.love(*);
&hea/rts;
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,142
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 531
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: terminating a process on vista

 
-4
  #4
Apr 24th, 2009
Vistas rediculous overhead such as data execution prevention
Do you even know what you are talking about? DEP is a hardware feature (The NX bit) of all modern CPUS and its not exclusively a vista feature, its been around as a concept since the dawn of computing in the 1960s and has been supported on windows since XP SP2/Server 2003. It is also supported on MacOS X and the majority of unix/linux systems.

Secondly, it has very little overhead and is a key security feature in any modern system, as it helps prevent buffer overrun exploits (which account for the majority of windows security scares)

Do your homework before speaking in future.

some other security 'feature'
Security features are there for a reason. What the user is trying to do
(terminate a process) is not something you want to happen maliciously by any user-executed application. Such requests should not be performed automatically without a) the correct privileges and b)implicit user approval

RE: The OP's problem

a) what do you mean by "so i i try to terminate it, but it only goes white" - be more specific

b) when you say "that box pops up that says "bla bla bla" stopped working..." do you mean that the program is indeed terminated successfully?

If the process is terminated unclealy, its the windows default configuration to give such an error message.
Last edited by jbennet; Apr 24th, 2009 at 10:03 pm.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 192
Reputation: nschessnerd is an unknown quantity at this point 
Solved Threads: 8
nschessnerd's Avatar
nschessnerd nschessnerd is offline Offline
Junior Poster

Re: terminating a process on vista

 
0
  #5
Apr 24th, 2009
Originally Posted by jbennet View Post
a) what do you mean by "so i i try to terminate it, but it only goes white" - be more specific

b) when you say "that box pops up that says "bla bla bla" stopped working..." do you mean that the program is indeed terminated successfully?

If the process is terminated unclealy, its the windows default configuration to give such an error message.
i mean like when a process freezes on windows and it gives the message about the program not exiting cleanly. But it keeps the process open, and i dont want that if its using all of my cpu
this.love(*);
&hea/rts;
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC