Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser - Runtime.Shutdown question Options
jkelly
Posted: Monday, April 13, 2015 12:20:04 PM
Rank: Advanced Member
Groups: Member

Joined: 2/26/2015
Posts: 53
I have a question on Runtime.Shutdown.

After I call this, does it dispose of my existing webcontrol and webview automatically?

I'd like to call Runtime.Shutdown and then reuse my existing webcontrol and webview without recreating new objects.

Is this possible?

thanks,
eo_support
Posted: Monday, April 13, 2015 12:32:39 PM
Rank: Administration
Groups: Administration

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

No. That is not possible. Runtime.Shutdown will destroy all WebView objects.

Thanks!
jkelly
Posted: Monday, April 13, 2015 12:57:38 PM
Rank: Advanced Member
Groups: Member

Joined: 2/26/2015
Posts: 53
So it only destroys the web view. So I can still use the existing webcontrol with a new web view, correct?
eo_support
Posted: Monday, April 13, 2015 1:37:11 PM
Rank: Administration
Groups: Administration

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

In theory yes you can still use the WebControl. However the WebControl is just a thin wrapper so there isn't much to it worth to be kept. What you can do is before you call Runtime.Shutdown, you set every WebControl's WebView property to null. That way they will be disconnected before you call Shutdown.

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.