Simple registry setting to prevent your computer by hanging.

Discussion in 'Windows' started by PRADIP, Mar 20, 2007.

  1. PRADIP

    PRADIP New Member

    Joined:
    Mar 20, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Ashta
    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.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Why it will not hang when the timeout is set to zero.
     
  3. PRADIP

    PRADIP New Member

    Joined:
    Mar 20, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Ashta
    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.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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.
     
  5. PRADIP

    PRADIP New Member

    Joined:
    Mar 20, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Ashta
    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.
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    That means window will hang but will just close if we wish to.
     
  7. PRADIP

    PRADIP New Member

    Joined:
    Mar 20, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Ashta
    Yes thats what i want to say
     
  8. warnerbob18

    warnerbob18 New Member

    Joined:
    Feb 27, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice