Windows 7 Forums


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

07 Nov 2009  
yonatan

windows 7
4 posts
 
 
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  
H2SO4

Win7x64
1,382 posts
 
 

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  
yonatan

windows 7
4 posts
 
 

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  
arliedog

Windows 7
22 posts
 
 
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  
dave1812

Win7
243 posts
 
 

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  
LP59

windows 7
1 posts
 
 
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  
Zomby88

Windows 7 Ultimate 64Bit
524 posts
USA
 
 

My System SpecsSystem Spec
Reply

 How to change the Max number of open windows problems?



Thread Tools



Similar help and support threads for: How to change the Max number of open windows
Thread Forum
Show number of instances of a program open? General Discussion
Product Key Number - Change Tutorials
Flip 3D - Change Number of Windows Displayed Tutorials
Solved Can you change the Network number? Network & Sharing
Windows 7 Maximum number of programs is already open General Discussion


All times are GMT -5. The time now is 03:10 PM.



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