|
Rank: Newbie Groups: Member
Joined: 2/20/2020 Posts: 9
|
Hello,
We have implemented session recording in our project, so every second we take a capture of the WebView. However, if we drag the form while doing a capture it results in a complete freeze of the pc. The only way to get back mouse control is to do an alt-tab. I tried creating a new project with only a WebBrowser and the capture timer, in case there was an interaction problem with another of our functionalities, but I still get the same result. Is there any way you can help me with that ?
Thanks !
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
Which version of our DLLs do you use? Have you tried our latest build to see if the problem still occurs? We did fix some issues related to WebView freeze during dragging but that's not with capture.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/20/2020 Posts: 9
|
I'm using the latest stable (20.0.53)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
In that case can you try to create a test project and send the test project to us? See here for more information on how to send test project to us: https://www.essentialobjects.com/forum/test_project.aspxOnce we have that we will debug it here and see what we can find. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/20/2020 Posts: 9
|
Alright I sent it through your contact page. Thanks for the quick support !
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, We have looked into the sample application you sent to us. The root of the problem is an re-entry issue. While WebView.Capture is waiting for the browser engine to respond, it keeps pumping windows message, if during this period another timer is triggered, it would call Capture again before the previous Capture call returns. This process can continue and eventually causes numerous nesting Capture calls without returning. We will change the code on our end to avoid such re-entering scenario. In the mean time, the easiest way for you to avoid this problem with the current build is add a flag such as:
Code: C#
private bool m_bInTimer;
private void TimerTick(object sender, EventArgs e)
{
if (m_bInTimer)
return;
try
{
m_bInTimer = true;
this.GetThumbnail();
}
finally
{
m_bInTimer = false;
}
}
This would avoid another GetThumbnail is called before the previous one returns. Please let us know if this works for you. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/20/2020 Posts: 9
|
Hello,
Unfortunately this doesn't seem to work on my end. The issue is only happening when dragging the window, so adding a flag doesn't do much in that case, unless I'm missing something.
Regards
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
We have posted a new build that would prevent such re-entering on our end. Please download the new build from our download page and let us know if it resolves the issue for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/20/2020 Posts: 9
|
Hello,
The issue is indeed resolved. Thanks for the quick support !
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Great. Thanks for confirming the fix!
|
|