Solved

increase maximal number of windows handles

Posted on 2006-04-10
10
841 Views
Last Modified: 2008-01-09
Hi!

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.
0
Comment
Question by:cforce
  • 4
  • 4
  • 2
10 Comments
 
LVL 59

Expert Comment

by:LeeTutor
ID: 16417211
Check this article:

http://support.microsoft.com/kb/314106
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.  

0
 
LVL 3

Expert Comment

by:M_Intuit
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.
0
 

Author Comment

by:cforce
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.
0
 

Author Comment

by:cforce
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!
0
 
LVL 59

Expert Comment

by:LeeTutor
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?
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 3

Expert Comment

by:M_Intuit
ID: 16432273
http://www.google.com/search?hl=en&q=increase+%22GDI+Objects%22+limit

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

Author Comment

by:cforce
ID: 16434423
Le Tutor: i really don't see any relation in this article to my topic
http://support.microsoft.com/kb/314106/EN-US/
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!
0
 
LVL 3

Accepted Solution

by:
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.
0
 
LVL 3

Expert Comment

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

Author Comment

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

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now