Welcome Guest Search | Active Topics | Sign In | Register

WebView - page(s) stop responding when streaming html5 and page is closed Options
penright
Posted: Monday, October 30, 2017 9:28:33 AM

Rank: Advanced Member
Groups: Member

Joined: 10/30/2017
Posts: 43
I did some searches, but since I am new I might not have phrased the question correctly and I may need some help fleshing out my question.

After clicking through a corp web site, the user is directed to a e-learning site. Then the pick a course. The course has a html5 video stream embed. So I am 3 tabs into the WebView with each tab being created from the original WebView. In other words, the NewWindow event is trapped and a new tab is opened, with the new WebView object being passed to it. When the streaming page is closed by calling the WebView.Close(True) and WebView.Dispose() all the still open web pages quit responding. One other note that might be a clue, if in the WebView.Closed event I add a 2 second sleep, all seems to work.

I am guessing there is still something being cleaned up and by calling the disposed something is left hanging.
Is there something I can test on inside of the WebView.Closed event to know when it is finished?
Or do I just leave the 2 second sleep?

eo_support
Posted: Monday, October 30, 2017 9:51:55 AM
Rank: Administration
Groups: Administration

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

This seems to be a bug. Is it possible for you to isolate the problem into a separate test project and send the test project to us? See here for more details on how to send the test project:

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

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

Thanks!
penright
Posted: Monday, October 30, 2017 1:05:37 PM

Rank: Advanced Member
Groups: Member

Joined: 10/30/2017
Posts: 43
eo_support wrote:
Is it possible for you to isolate the problem into a separate test project and send the test project to us?

Not easily. The URL I am calling is password protected. Not sure if I get the same effect with youtube. BUT .....

After sending the question I did have a thought. Actually, I think typing the question forced me to organize my thoughts.
I had breakpoints set on two events. The (WebView) closing and closed. I thought it was weird that the closing was not firing, but not being familiar with the code, just thought that was the way it is.

So I was wondering if the dispose being called in the immediately after the close was the issue. So I commented out the dispose and all works now without having any delay. Also the closing event is firing.
So, I am guessing by not calling the dispose is giving the WebView a chance to clean itself up.

Code: Visual Basic.NET
Public Sub CloseBrowser()
      _WebView.Close(True)
     '_WebView.Dispose()
End Sub

eo_support
Posted: Monday, October 30, 2017 1:25:04 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
I guess you are right. :) But in order for us to give you a definite answer, we can't settle on guesses and we must be able to reproduce the problem first. Without being able to precisely follow exactly what you are trying to do and seeing/debugging exactly the same problems you are having, we can't tell you much for sure. This is why we need a repro for such cases. So if by any chance you can put one together please feel free to send us and we will be happy to see what we can find.


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.