How to find source for win32 exception "error creating window handle"

Sue picture Sue · Oct 17, 2013 · Viewed 7.4k times · Source

I'm looking for a little help regarding the win32 exception "error creating window handle". From time to time our program (WinForms - C#) throws this exception and sometimes the windows even freeze, so that the users have to kick the process to be able to work again.

From the many other threads regarding this problem, I know what I should be looking for, but not extactly where as our program is quite big. So I was hoping that there might be a way to restrict the codelines I have to check... Are the any tools, which can help with this exception?

Answer

Sue picture Sue · Oct 25, 2013

Short update: I solved the problem.

ProcDump didn't help me much, because I got pretty the same information from our logfiles. However, I was able to reproduce the error in our development environment. Thanks to debugger and displaying the user-objects count in the taskmanager I found the source of the memoryleak - an undisposed texbox which was created dynamically.

Thanks again for the tips!