Article ID: 947246 - Last Review: September 15, 2010 - Revision: 2.0 You may receive an "Out of Memory" error message because of the desktop heap limitation in Windows Vista or in Windows 7
SYMPTOMSAfter you open many application windows in Windows Vista or in Windows 7, you may be unable to open any additional windows. Sometimes, a window may open. However, it will not contain the expected components. Additionally, you may receive an error message that resembles the following: Out of Memory CAUSEThis problem occurs because of the desktop heap limitation in Windows Vista or in Windows 7. If you close some windows, and then you try to open other windows, these windows may open. However, this method does not affect the desktop heap limitation. RESOLUTIONImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
To have us fix this problem for you, go to the "Fix it for me" section. If you prefer to fix this problem yourself, go to the "Let me fix it myself" section.Fix it for meTo fix this problem automatically, click the Fix it button or link. Click Run in the File Download dialog box, and follow the steps in the Fix it wizard. Notes
Then, go to the "Did this fix the problem?" section. Let me fix it myselfTo resolve this problem, modify the desktop heap size. To do this, follow these steps:
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. REFERENCES
For more information about similar issues, click the following article numbers to view the articles in the Microsoft Knowledge Base:
126962
(http://support.microsoft.com/kb/126962/
)
"Out of Memory" error message appears when you have a large number of programs running
318677
(http://support.microsoft.com/kb/318677/
)
PRB: Cannot create more child windows and other problems when you reach the maximum number of allowable child windows in an MDI application
For more information about the session memory issue in a Terminal Services environment, click the following article number to view the article in the Microsoft Knowledge Base:
840342
(http://support.microsoft.com/kb/840342/
)
Applications may not run correctly in a Terminal Services environment
For more information about the desktop heap, visit the following Microsoft Web site: http://blogs.msdn.com/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx
(http://blogs.msdn.com/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx)
Did this fix the problem?
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
