Welcome Guest Search | Active Topics | Sign In | Register

How to use Engine Stop Options
Adam
Posted: Wednesday, February 22, 2017 1:31:28 PM
Rank: Newbie
Groups: Member

Joined: 2/22/2017
Posts: 2
Hi all,

I'm having an issue trying to use the Stop method on the Engine class (https://www.essentialobjects.com/doc/eo.webengine.engine.stop.aspx).

Stopping works fine (MyWebView.Engine.Stop(true)), and it indeed clears the cache when passing true (which is why I'm using it), but I can't get it to start again. Naturally I've tried starting (MyWebView.Engine.Start()) the engine again, but even after doing this and waiting some time, making that EO.WebBrowser.WebView do anything will lead to the "This WebView has already been destroyed" exception.

I've also tried creating a new WebView afterwards, as well as waiting on the Engine event Stopped before I tried to Start it, but it all leads to the same issue.

Am I using this method wrong? How can I safely resume work with a WebView after the Stop method has been called?

Thank you.
eo_support
Posted: Wednesday, February 22, 2017 1:33:09 PM
Rank: Administration
Groups: Administration

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

Once an Engine has been stopped, all WebViews associated to that engine will no longer be usable. You can create a completely new WebView and that should work.

Thanks!
Adam
Posted: Wednesday, February 22, 2017 1:52:13 PM
Rank: Newbie
Groups: Member

Joined: 2/22/2017
Posts: 2
Yea that did it, 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.