R
Ramana
Hi,
I am working on a windows application (C#) which has number of tab pages
and each tab page contains large number of controls (labels, text boxes,
buttons etc).
After facing the window creation problem, I came to know that the maximum
no. of window handles per process is limited to 10000.
I thought of calculating the no. of user objects in the current process and
restrict the user to add more tabs pages if the total no. of user objects
exceeds 1000.
After few trials, I found that the 1000 limit is not the only reason for
this error.
If I run one single instance of my application with out any other
application on my desktop, then the error is coming at 1000 user objects.
But if I start two instances of the same application or If start few other
applications on my machine, then I am getting the "error creating window
handle" error before reaching the 1000 limit. Some times I am getting the
error after creating few hundreds of user objects also.
What is the limiting factor (other than the number of user objects) for
creating more windows. I have 1GB RAM on a 2.8 GHz machine with WinXP and I
don't think RAM is the problem.
I would like check for this limit before creating the new tab page itself.
Advance thanks.
-Ramana
I am working on a windows application (C#) which has number of tab pages
and each tab page contains large number of controls (labels, text boxes,
buttons etc).
After facing the window creation problem, I came to know that the maximum
no. of window handles per process is limited to 10000.
I thought of calculating the no. of user objects in the current process and
restrict the user to add more tabs pages if the total no. of user objects
exceeds 1000.
After few trials, I found that the 1000 limit is not the only reason for
this error.
If I run one single instance of my application with out any other
application on my desktop, then the error is coming at 1000 user objects.
But if I start two instances of the same application or If start few other
applications on my machine, then I am getting the "error creating window
handle" error before reaching the 1000 limit. Some times I am getting the
error after creating few hundreds of user objects also.
What is the limiting factor (other than the number of user objects) for
creating more windows. I have 1GB RAM on a 2.8 GHz machine with WinXP and I
don't think RAM is the problem.
I would like check for this limit before creating the new tab page itself.
Advance thanks.
-Ramana