You may receive an "Out of Memory" error message because of the desktop heap limitation
Fix it for me
To fix this problem automatically in Vista and Windows 7, click the Fix itbutton or link. Click Runin the File Download dialog box, and follow the steps in the Fix it wizard.
- This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.
- If you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem.
- We increase the second value of the SharedSection registry entry to 20480 and increase the third value of the SharedSection registry entry to 1024 in the automatic fix.
Then, go to the "Did this fix the problem?" section.
Let me fix it myself
To resolve this problem, modify the desktop heap size. To do this, follow these steps:
- Click Start, type regedit in the Start Search box, and then click regedit.exe in the Programs list.
Note If you are prompted for an administrator password or for confirmation, type your password, or click Continue.
- Locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems
- Right-click the Windows entry, and then click Modify.
- In the Value data section of the Edit String dialog box, locate the SharedSection entry, and then increase the second value and the third value for this entry.
- The second value of the SharedSection registry entry is the size of the desktop heap for each desktop that is associated with an interactive window station. The heap is required for each desktop that is created in the interactive window station (WinSta0). The value is in kilobytes (KB).
- The third SharedSection value is the size of the desktop heap for each desktop that is associated with a "non-interactive" window station. The value is in kilobytes (KB).
- We do not recommend that you set a value that is over 20480 KB for the second SharedSection value.
Windows Vista SP1, 7, 8, 8.1 (32bit) / Windows Server 2008 (32bit)
Windows Vista, 7, 8, 8.1 (64bit) / Windows Server 2008, 2008 R2, 2012, 2012 R2 (64bit)
In Windows Vista and in later operating systems, memory allocations are dynamic. Therefore, there is no limitation for memory allocation. However, if you allocate too much memory to the desktop heap, negative performance may occur. This is the reason why we do not recommend that you set a value that is over 20480.
Note The desktop heap size is not affected by the physical RAM on the computer. Therefore, you cannot improve the performance by adding physical RAM.
For more information about the desktop heap, visit the following Microsoft Web site:
Did this fix the problem?
- Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is not fixed, you can contact support.
- We would appreciate your feedback. To provide feedback or to report any issues with this solution, please leave a comment on the "Fix it for me" blog or send us an email.
Article ID: 947246 - Last Review: 08/06/2015 17:48:00 - Revision: 4.0
- kbprb kbtshoot kbexpertiseadvanced kbfixme kbmsifixme KB947246