[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

webBrowser Control resource problem

Posted on 2010-09-16
2
Medium Priority
?
1,778 Views
Last Modified: 2013-12-08
I am just puzzled regarding this problem in using the webBrowser control since I don't see any reason why this could occur. Anyway, here it goes.

There are times that I receive this exception error:

System.Runtime.InteropServices.COMException (0x800700AA): The requested resource is in use. (Exception from HRESULT: 0x800700AA)


Any help on this matter will be greatly appreciated.

Thank in advance!
0
Comment
Question by:Dhanasekaran Sengodan
2 Comments
 
LVL 8

Accepted Solution

by:
cubaman_24 earned 2000 total points
ID: 33699716
Well, without more info is hard to know.. That's ERROR_BUSY usually happens when IE is doing something else, e.g. displaying a window.alert message box.
I haven't looked into a solid answer for you, but make sure the application your webbrowser control is operating in is running in a static thread (this means having the [STATThread] attribute on your Main) and also make sure you are only accessing the webbrowser control from the actual UI thread queue - so if you are multi-threading (or using a timer or anything like that) you will need to use the .Invoke() method to insert your requests into the UI queue.
Best regards
0
 
LVL 14

Author Closing Comment

by:Dhanasekaran Sengodan
ID: 33699849
Excellent
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question