How to change the Max number of open windows

yonatan

New member
Local time
9:19 AM
Messages
4
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 My Computer

At a glance

windows 7
OS
windows 7
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 My Computer

At a glance

Win7x64
Computer Manufacturer/Model Number
Multiple machines in various stages of decomposition.
OS
Win7x64
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 My Computer

At a glance

windows 7
OS
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 Computer My Computer

At a glance

Windows 7AMD 1.8 quad core7 GigNVIDIA 6150
Computer Manufacturer/Model Number
HP A6757c
OS
Windows 7
CPU
AMD 1.8 quad core
Motherboard
Asus
Memory
7 Gig
Graphics Card(s)
NVIDIA 6150
Sound Card
Sound Blaster
Monitor(s) Displays
w2408h
Hard Drives
640 gig
Case
desktop
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 My Computer

At a glance

Win7
OS
Win7
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








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 My Computer

At a glance

windows 7
OS
windows 7
:shock::shock::shock::shock::shock::shock::shock::sick:
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64BitC2D E82008GB PNY PC2-6400BFG 9600GT x 2
Computer Manufacturer/Model Number
Myself
OS
Windows 7 Ultimate 64Bit
CPU
C2D E8200
Motherboard
XFX 750i
Memory
8GB PNY PC2-6400
Graphics Card(s)
BFG 9600GT x 2
Sound Card
Stock XFX Optical
Monitor(s) Displays
Gateway 22" HD Display
Hard Drives
C: 1 TB G: 500 GB H: 500 GB
PSU
Ultra LSP 550 Pro Lifetime Series
Case
Xion2
Cooling
ThermalTake
Back
Top