Welcome Guest Search | Active Topics | Sign In | Register

Stuck in WebView.Capture() Options
ozheek
Posted: Tuesday, August 30, 2016 10:00:20 PM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
I have multi thread application. In each thread I do: send key events, send mouse events, send chars.

And when I do WebView.Capture() it stucks in that method and never returned.

Any ideas how to solve it?
eo_support
Posted: Wednesday, August 31, 2016 7:31:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

WebView is NOT multi-thread safe. You must call its method from the same thread in which it was created.

Thanks!
ozheek
Posted: Thursday, September 22, 2016 12:15:12 PM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
Can't fix this issue. I hope you can help me to understand what's the problem.

My application opens pages, does some stuff (clicks, mouse move and goes to other pages via clicks).
After each operation it captures image and saves it.

If app works in one thread it works fine, but when I use 10 threads after some time it stucks in capture.
I think the problem that I am trying to capture image when page is navigation. Can it be the problem?

When I call it via BrowserThreadRunner.Send(action, ExecutionActionTimeOutMilliseconds)) and it exits with timeout.

Any ideas?
eo_support
Posted: Thursday, September 22, 2016 1:54:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

Please try to isolate the problem into a test project and send the test project to us:

https://www.essentialobjects.com/forum/test_project.aspx

Once we have that we will be happy to investigate further.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.