There's a problem on all Windows systems that there's a limitation on graphical primitives that can be used system-wide. Which leads to the following: once I've started several (actually something like 25+) GUI-rich apps like Visual Studio or Internet Explorer I can't open any more windows - depending on how the application reacts to this either nothing happens or an error is reported.

Is there anything I can tune in Windows to at least make the upper limit on these primitives higher?

link|improve this question

1  
it's not a "leakage", it's a "limit" – Steven A. Lowe Aug 20 '09 at 18:57
Makes me wonder why you need 25 instances of Visual Studio at any one point in time. – Joey Aug 20 '09 at 19:31
Well, it's quite typical to have say 5 instances of VS for looking "how that works" in other projects, Outlook and multiple IE instances. This can be enough to hit the limit. – sharptooth Aug 21 '09 at 9:27
feedback

2 Answers

up vote 3 down vote accepted

Take a look at this MSDN article. It explains how to increase the limit of GDI objects in your system

This MSDN article explains how to increase the limit of User object.

link|improve this answer
Both links only give pointers how to change the per-process limit. This won't affect the system-wide limit which is what the OP is running into. The limit of 10k handles for a single process is quite ample by default. VS only eats up around 500 of them. – Joey Aug 20 '09 at 19:34
feedback

This Microsoft NTDebugging article explains at length how the Desktop Heap can be exhausted and prevent opening additional windows. Indeed, this was THE crucial solution to my own problem of opening an extreme amount of programs on a Windows 2000 and Windows XP workstation. I had to increase my "3072" value to "8192" before I fixed it, after that, I've NEVER run out of handles again, even with 310 Chrome Tabs open simultaneously plus about 20 other applications on a 4GB RAM WinXP 32-bit system.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.