|
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,
|
|
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!
|
|
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?
|
|
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!
|
|