Link to home
Start Free TrialLog in
Avatar of ho_cm
ho_cm

asked on

Limitations of no of Handles in Win NT

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?
Avatar of ho_cm
ho_cm

ASKER

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.
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 ;)
I think NT provides either 8192 or 16384 handles. I'm not sure which.

Cheers,

Raymond.
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial