Simple registry setting to prevent your computer by hanging.

PRADIP's Avatar author of Simple registry setting to prevent your computer by hanging.
This is an article on Simple registry setting to prevent your computer by hanging. in Windows.
Open registry by typing the regedit in the Run Dialog box.

Browse to: HKEY_CURRENT_USER\Control Panel\Desktop

locate DWORD value "WaitToKillAppTimeout" which have a default value as

"WaitToKillAppTimeout"="20000"

This value represents the time(in milisecond) taken by window to end program when it is not responding. Change it to 0 and prevent your computer by hanging.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Why it will not hang when the timeout is set to zero.
0
PRADIP's Avatar, Join Date: Mar 2007
Light Poster
Not sure, but I think when you choose "End Now", windows may safely closing the program(i.e. trying to avoid loss of data). When you set mentioned value to 0. it closes program as it is.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
That way you will have some problems like say you have a program which takes a bit long time to execute and so its not hanged but some white screen and windows may kill that process. I guess then the value should be well optimized.
0
PRADIP's Avatar, Join Date: Mar 2007
Light Poster
no it will end program only when you click "End Now" button on "This program is not responding " dialog box. Which occours only in case either the program is 'really'not responding or you choose to close the unresponding program.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by PRADIP
no it will end program only when you click "End Now" button on "This program is not responding " dialog box. Which occours only in case either the program is 'really'not responding or you choose to close the unresponding program.
That means window will hang but will just close if we wish to.
0
PRADIP's Avatar, Join Date: Mar 2007
Light Poster
Yes thats what i want to say
0
warnerbob18's Avatar, Join Date: Feb 2012
Newbie Member
You must try to delete temp files as they can also be the reason for this.You just need to go in Start then in run window type %temp% and hit enter. You will get all the temp files you can delete them. As this was discussed in a program of Microsoft support and it really works, hope you will also get benefit from this.