window handle error
-
Hi, In our window based C#.net application, we are getting this "Window Handle Error" in a random manner. Initially we thought it could be a memory issue but sometimes even if there is enough memory, the same error comes. we are unable to track the root of this error. Any input regarding this error is most welcome. Thanks, Madhan
-
Hi, In our window based C#.net application, we are getting this "Window Handle Error" in a random manner. Initially we thought it could be a memory issue but sometimes even if there is enough memory, the same error comes. we are unable to track the root of this error. Any input regarding this error is most welcome. Thanks, Madhan
When the error occurs - what does the stack trace look like? What happens immediately prior to the error?
Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
Hi, In our window based C#.net application, we are getting this "Window Handle Error" in a random manner. Initially we thought it could be a memory issue but sometimes even if there is enough memory, the same error comes. we are unable to track the root of this error. Any input regarding this error is most welcome. Thanks, Madhan
You may want to open Task Manager, go to the View menu and Select Columns. Turn on the Handles column. Then run your application and start using it. If you application continues to accumulate handles and starts to climb over, say, 1,500 handles, you've got a handle leak problem. Your code isn't releasing unmanaged resources, like GDI handles, file handles, window handles, ... This means you're not calling
.Dispose()
on objects, like Graphics, Brush, Font, Pen, forms shown with ShowDialog(), ...A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007