Solved

Limitations of no of Handles in Win NT

Posted on 1999-01-22
4
189 Views
Last Modified: 2010-04-15
What is the maximum no of handles Wint NT can access. My applications which access shared memory had caused the number of handles and physical memory as shown on task manager to go up progressively. I did not use the UnMapFileViewing() as my application will crash. What could be the possible cause?
0
Comment
Question by:ho_cm
4 Comments
 

Author Comment

by:ho_cm
ID: 1258310
The main reason that my application will crash is that there are six threads that will be accessing the shared memory.. but on different location thus does not need any memory locking devices. If I use UnMapFileViewing function, my application will crash as it will be awaiting responses from the shared memory.
0
 
LVL 3

Expert Comment

by:_Scotch_
ID: 1258311
I dont know whats crashing your application but I had a threaded
app that was leaking HBRUSHes ...  It would leak over 5000 of
them before the app would get flaky so I think you can safely
access 5000 handles, at least on this box ;)
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1258312
I think NT provides either 8192 or 16384 handles. I'm not sure which.

Cheers,

Raymond.
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 20 total points
ID: 1258313

The number of handles available depends on what the handles actually reference!

B ekiM
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to organize data in excel ? 2 114
voltage to force translation ? 8 99
Passing command line arguments in C 10 90
Need example 5 113
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

773 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