increase maximal number of windows handles

Posted on 2006-04-10
Last Modified: 2008-01-09

How can i tweak in windows XP the number of maximal allowed window handles.
I have an application which uses many windows, when i have opened to many of the windows, i can't open any more, also in other appz.
Eg. the Start Menue does not pop up any more or i get blank frame in task manager.

There must be a registry settings to tweak this, has someone a glue?

Tx for help.
Question by:cforce
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 2
LVL 59

Expert Comment

ID: 16417211
Check this article:
Troubleshooting MS-DOS-based programs in Windows XP

A relevant quotation:

Some programs require special settings or drivers to run in the Config.sys or Autoexec.bat file. If this is the case, there are two options for initializing these files when you starting your program: • Enter these lines in the Config.nt and Autoexec.nt files in the %SystemRoot%\System32 folder.
• Create new Config and Autoexec files to be run when starting this program. To do so, follow these steps:1. Create the files and save them with the extension .nt in a folder other than %SystemRoot%\System32 (these files are usually saved in the same folder as the program).
2. Right-click the desktop, point to New, and then click Shortcut.
3. In the Type the location of the item box, type the full path to the file that you want to run, and then click Next.
4. In the Type a name for this shortcut box, type the name for the shortcut, and then click Finish. This creates a new shortcut on the desktop.
5. Right-click the new shortcut, and then click Properties.
6. On the Program tab, click Windows to open a dialog box for the path to the Autoexec and Config files.
7. Type the full path to the files that you created, and then click OK in both dialog boxes.
Clicking this icon runs the Autoexec and Config file specified for the program. These settings are subject to the same restrictions as those listed for MS-DOS-based programs.  


Expert Comment

ID: 16419008
Are you speaking of GDI Objects or Memory Handles ?
How XP's resources are initially allocated is based on the amount of memory available to the OS.  Otherwise, they're dynamically allocated on an as needed basis.

Unless you're running with too little physical RAM, I can't imagine a *properly written* program being that much of a resource hog.  You may wish to check your startup paths and elminate any extra programs that do not need to be operating.  For example, QuickTime loads itself up on boot, however there is absolutely no reason what-so-ever for it to be doing so.  Same goes for Sun's JAVA, many Dell and other OEM applets.  Be sure that your machine is free of malware.  Check the TaskMgr to see what apps are consuming large amounts of CPU time.  If it is an instance of SvcHost, then use TaskList /SVC to help narrow the search of process of elimination.

You can attempt to manually tweak or increase the "NonPagedPoolSize" and maybe "NonPagedPoolQuota" found under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management".  However, if you don't readup on or understand the parameter or what it does and set it improperly, it can render your system unbootable.  Information on these parameters is under the Microsoft Windows 2000 Resource Kit. (Registry portion).  

Before doing that, try updating your video drivers instead... and again, eliminate any programs that do not need to be running, including aesthetical programs intended to improve the look of Windows; also bloatware and malware alike.

Author Comment

ID: 16420037
i Have 1 GB, and i am talking of window handles, so i think ist shall be same as gdi handles.
I am pretty sure that it is exatly one app that consumes that much handles, and i have no more appz running, also my graphic drivers are quite well std. nvidia ones.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 16423971
Btw i have enough free memory, but windows does no allow mor gdo ibjects it seems to be a hard limit. But where can i config/tweak the limit? I don't think that "NonPagedPoolSize" or "NonPagedPoolQuota" are the correct parameters!
LVL 59

Expert Comment

ID: 16432180
Did you try the changing of FILES= statement in the Config.nt file, as described in the article from Microsoft I quoted above?

Expert Comment

ID: 16432273

(I'll look later but don't have the time now.)

Author Comment

ID: 16434423
Le Tutor: i really don't see any relation in this article to my topic
What exactly shall increase the allowed number uf guids objects ? At least that is no ms dos program ist written for win32, any way how could it if i am talking form window handles!

Accepted Solution

M_Intuit earned 250 total points
ID: 16438977
Open "perfmon.msc".

Click the + (add) button.
Under "Performance Object", select "Memory".
Add the following counters...
-Pool Nonpaged Bytes
-Pool Nonpaged Allocs

and just for curiosity's sake...
-Pool Paged Bytes
-Pool Paged Resident Bytes
-Pool Paged Allocs

What I'm looking to verify in the data provided by these counters, is that your system's resources aren't being exhausted, and whether or not this has anything to do with the problems you're experiencing.  The system nonpaged pool is not dynamic, unlike other resources.  "PoolMon.Exe" console utility provides similar info.

Expert Comment

ID: 16439017
(set Perfmon to view in the "numbers" mode.  I hate graph mode.

Author Comment

ID: 16440906
Ok, thanks so far , this suggestions will make me run test for some time.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question