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.
Go4Expert Founder
21Mar2007,09:26   #2
shabbir's Avatar
Why it will not hang when the timeout is set to zero.
Light Poster
21Mar2007,13:37   #3
PRADIP's Avatar
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.
Go4Expert Founder
21Mar2007,15:56   #4
shabbir's Avatar
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.
Light Poster
21Mar2007,17:48   #5
PRADIP's Avatar
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.
Go4Expert Founder
21Mar2007,18:15   #6
shabbir's Avatar
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.
Light Poster
21Mar2007,18:21   #7
PRADIP's Avatar
Yes thats what i want to say
Newbie Member
27Feb2012,17:27   #8
warnerbob18's Avatar
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.