Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to change the Max number of open windows


07 Nov 2009   #1

windows 7
 
 
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 System SpecsSystem Spec
.

07 Nov 2009   #2

Win7x64
 
 

The same procedure should work on Windows 7 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 System SpecsSystem Spec
07 Nov 2009   #3

windows 7
 
 

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 System SpecsSystem Spec
.


26 Nov 2009   #4

Windows 7
 
 
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 System SpecsSystem Spec
26 Nov 2009   #5

Win7
 
 

Quote   Quote: Originally Posted by yonatan View Post
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 System SpecsSystem Spec
12 Mar 2010   #6

windows 7
 
 
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








Quote   Quote: Originally Posted by yonatan View Post
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 System SpecsSystem Spec
12 Mar 2010   #7

Windows 7 Ultimate 64Bit
 
 

My System SpecsSystem Spec
Reply

 How to change the Max number of open windows




Thread Tools




Our Sites

Site Links

About Us

Find 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:13 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33