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
yonatan

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
H2SO4

Win7x64
 
 

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 System SpecsSystem Spec
07 Nov 2009   #3
yonatan

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
arliedog

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
dave1812

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
LP59

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
Zomby88

Windows 7 Ultimate 64Bit
 
 

My System SpecsSystem Spec
Reply

 How to change the Max number of open windows




Thread Tools





Similar help and support threads
Thread Forum
Product Key Number - Change
How to Change the Product Key Number in Windows 7 This will show you how to change the product key number in Windows 7 so that you can use another product key number to activate your Windows 7 with instead. This can be helpful if you have entered the incorrect or no product key number...
Tutorials
Show number of instances of a program open?
In Windows XP and Vista, there was a feature, so if multiple instances of a program were open, it would show how many are open (in numbers) on the taskbar. This feature is gone in Windows 7. Is there any way to get it? (through a download or through settings.)
General Discussion
Flip 3D - Change Number of Windows Displayed
How to Change the Number of Windows Displayed in Flip 3D This will show you how to change the number of windows displayed when Windows Flip 3D is activated. This is a useful tip for those of you that have low-end graphics cards and still would like to use the Flip3D feature.Keyboard...
Tutorials
Can you change the Network number?
OK, this is not a critical matter or anything, but it annoys us obsessive-compulsive types! I just upgraded my router and now my wired connection icon in the taskbar, and the Home Network in Network and Sharing Center says "Network 2". There is only one network. On my XP computer it is "Local...
Network & Sharing
Windows 7 Maximum number of programs is already open
Once installed the windows 7 ultimate honor and I have a problem because the fix can not be opened as du programa as likely to regulate this I have this problem because the step can not make more than 4 5 why does this happen with programs that help newly installed and I have not idea how to...
General Discussion
Must enter serial number each time you open Lightroom
Installed 64-bit Lightroom 2.5 on new Win-7 box. Entered serial numbers and LR started OK, but when I close LR and restart, it asks for serial numbers again Lightroom Forum provided the link You must enter your serial number each time you open Photoshop Lightroom 1.x, which gives registry-fix...
Software

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 17:34.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App