I'm trying to debug an error coming out of a Windows .NET based application. The error message goes something like "Error creating window handle". On researching about this error I found out that the likely cause is that the application is using more than 10000 user handles.
I want to put in some debug code into the application and see how many 'user handles' is the application using. But googling for "how to count user handles" didn't help.
So, has anyone of you faced a similar problem? If yes, how did you debug it?