Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have some problems in my app where we ran out of window handles, i.e. the 'USER Objects' count in the task manager for our process grew up to 10000 where the app then crashed with a Win32Exception about 'error creating window handle'.

After some investigations, i found out reason wan .NET WebBrowser control. I created a sample project. I added web browser control and buttons. Whenever I clicked on a button, then every keystroke would add 1 to 4 new user objects and they would keep increasing.

VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  WebBrowser1.DocumentText = "some text"
End Sub


This only started happening once the web browser control's 'DocumentText' was initialized which you have to initialize in order to be able to use it.

please help.. or suggest me some 3rd party WebBrowser control
Posted
Comments
Sergey Alexandrovich Kryukov 20-Feb-12 14:23pm    
I cannot believe this code along could create this problem.
Could you create a fully complete and running code sample (you could do it in one file) to reproduce the problem?
--SA

1 solution

It's not going to be a problem with the WebBrowser control. You've got bigger problems, either with the code that's in the page(s) you're viewing or with your system.

There is no other WebBrowser control that I'm aware of.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900