Window Heap Setting (For Out of Memory Issue/Window Handling Error)

"Out of Memory" error message appears when you have a large number of programs running.
When you run a large number of Windows-based programs, "Out Of Memory" error messages appear when you attempt to start new programs or try to use programs that are already running, even though you still have plenty of physical and pagefile memory available.
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.

To correct this problem, increase the size of the desktop heap:-

  1. Run Registry Editor (Regedt32.exe).

  2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
    \System\CurrentControlSet\Control\Session Manager\SubSystems

  3. Select the Windows value.

  4. From the Edit menu, choose String.

  5. Increase the SharedSection parameter.
    For Windows NT:
    SharedSection specifies the system and desktop heaps using the
    following format:
    SharedSection=xxxx,yyyy


    The SharedSection key is a long string when viewed using Registry Editor.
    The default value for this key is as follows:-

%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072,512 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:GdiServerDllInitialization,4 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16

CHANGE IT TO

( %SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,2048 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16 )

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.