How to change the Max number of open windows


  1. Posts : 4
    windows 7
       #1

    How to change the Max number of open windows


    Hi,

    I use a program that opens hundreds of windows (about 700 to be precise...)
    and when i try to open more that that there's a message saying something like: " not enough memory", and when i go to the TaskManager i see that it uses less than 1 gig of ram (out of 2).
    when i had XP i went to the registry settings somewhere and changed a memory value, and it fixed the problem.
    Now that i have win 7 i search for the new (exact) value i should be placing.

    Here is a link to the solution Microsoft proposes for XP/Vista:
    "Out of Memory" error message appears when you have a large number of programs running
    (no solution there for windows 7 yet...)

    Thanks!
      My Computer


  2. Posts : 1,377
    Win7x64
       #2

    The same procedure should work on Win7 too, but they haven't yet updated the article.

    C:\>reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems" /v windows
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems
    windows REG_EXPAND_SZ %SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=On Sub
    SystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2
    ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16

    Increase the bolded number. It'll be substantially smaller on 32-bit windows (the example is from the 64-bit box on which I'm typing this).

    ========================================
    Just FYI, the size of those parameters has very little to do with the amount of RAM. Going back a looong way, parts of this code are from pre-NT versions of Windows. So-called GDI objects don't live in the "Object Manager" namespace, but instead in a separate area used for storing "GDI objects" (window elements, icons, buttons, cursors...).

    When the visual complexity of the stuff you've got on screen reaches a level where the storage area is no longer sufficient to store all those windows, buttons, checkboxes..., you've run out of a resource called "desktop heap", and that's what the error message is really trying to tell you.

    What sort of program is it, just out of idle curiosity?
      My Computer


  3. Posts : 4
    windows 7
    Thread Starter
       #3

    Thanks H2SO4,
    Well, the original number on my system is 12288 (32-bit indeed), and when i increase that number
    it doesn't make any difference (When i had XP i know that there was an exact number to put, i think it was 6144 or 8096 and any other number wouldn't make any difference)
    Am i doing a mistake somewhere?

    Anyway, I use a stock trading program called TradeStation, and i open a lot of charts to monitor the markets.
      My Computer


  4. Posts : 22
    Windows 7
       #4

    desktop heap allocation failure


    I still get a event logged with an ID of 243 and a description of desktop heap allocation failure.This is happening at boot up with only the desktop open, nothing on the taskbar ec. When I look at the settings in the registry they are the same as shown in the earlier post. Can a bad graphics driver effect the desktop heap?
      My Computer


  5. Posts : 231
    Win7
       #5

    yonatan said:
    Thanks H2SO4,
    Well, the original number on my system is 12288 (32-bit indeed), and when i increase that number
    it doesn't make any difference (When i had XP i know that there was an exact number to put, i think it was 6144 or 8096 and any other number wouldn't make any difference)
    Am i doing a mistake somewhere?

    Anyway, I use a stock trading program called TradeStation, and i open a lot of charts to monitor the markets.
    700 windows??? How big is your monitor and what's the resolution?? How can you keep track of that many windows? You must be a higher lifeform that a mere mortal like myself. :)
      My Computer


  6. Posts : 1
    windows 7
       #6

    Did you find the solution?


    I use the same program and have the same problem. Did you find the solution? I defaulted to buying enough machines to run 1200 windows for TradeStation but am moving to Spain. Would like to know if I can run everything off of my one "rocket ship" computer (8 processors).

    Please let me know.

    Thanks








    yonatan said:
    Hi,

    I use a program that opens hundreds of windows (about 700 to be precise...)
    and when i try to open more that that there's a message saying something like: " not enough memory", and when i go to the TaskManager i see that it uses less than 1 gig of ram (out of 2).
    when i had XP i went to the registry settings somewhere and changed a memory value, and it fixed the problem.
    Now that i have win 7 i search for the new (exact) value i should be placing.

    Here is a link to the solution Microsoft proposes for XP/Vista:
    "Out of Memory" error message appears when you have a large number of programs running
    (no solution there for windows 7 yet...)

    Thanks!
      My Computer


  7. Posts : 499
    Windows 7 Ultimate 64Bit
       #7

      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:11.
Find Us