So I'm working on a very large program, but I occasionally get this error:
System.ComponentModel.Win32Exception: Error creating window handle.
It ususally comes up before the program even loads up. I've already done some research, and the conscensus seems to be that this error means you have used up all of the 1000 window handlers that an application can use...
So my question: Is there a way to look up how many windows handlers a specific application is using? I know you can go to the Task Manager, and under performance, you can see the total number of handlers... but I'm trying to figure out a way to determine an exact (ish) number at any given time...
Or if anyone knows a way to set the limit higher than 1000, that would be great too...
And I would redesign the software to use less handlers in the first place, but its a huge program, and it would likely take a year or two to reprogram it... so I would rather not do that...
Tags: