<> wrote...
> documentation and going on. On my new notebook, I noticed that I can't
> open endlessly windows. After 30 or 40 windows it stops to launch new
> programs. I have 2 gbytes of ram, and never reach the limit of memory.
> Is there a method to know which is this limit and is there a way to
> improve it?
Hi Maurizio
GDI and DWM both support an enormous number of windows, theoretically - for
GDI it is something ridiculous, like 64K windows open.
However, resource pools on the system will become depleted, long before you
hit this limit. The Desktop Heap is a one such resource, which often is the
first to be exhausted. At 30 or 40 windows, it does sound like you are
running out of desktop heap. Sometimes you get an error message; but often,
you find you just can't open any more windows.
Tony Schreiner has stpes to increase the size of your desktop heap, here:
http://blogs.msdn.com/tonyschr/archi...mitations.aspx
A more detailed explanation of what desktop heap is, and how it works, is
here:
http://blogs.msdn.com/ntdebugging/ar...-overview.aspx
There is a utility from Microsoft you can use to monitor Desktop Heap usage.
However it only works on W2K, XP and Server 2003; it doesn't work on Vista
(yet). But might be interesting if you want to explore desktop heap on any
XP machines you have:
http://www.microsoft.com/downloads/d...displaylang=en
Increasing the size of your desktop heap will let you open more windows.
Note that this will also use a bit more memory. And you may find you run out
again, around 70 or so Windows. But, 70 Windows is quite a lot :-), enough
for most common uses.
Hope it helps,
--
Andrew McLaren
amclar (at) optusnet dot com dot au