Solved

increase maximal number of windows handles

Posted on 2006-04-10
10
839 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

11 Experts available now in Live!

Get 1:1 Help Now