|
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?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
WebView is NOT multi-thread safe. You must call its method from the same thread in which it was created.
Thanks!
|
|
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?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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.aspxOnce we have that we will be happy to investigate further. Thanks!
|
|