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.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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!
|
Rank: Newbie Groups: Member
Joined: 2/22/2017 Posts: 2
|
Yea that did it, thanks
|