Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i want msedgewebview2 process ID..
#23
The restart you are talking about is basically a:
- CloseWebView, followed by
- CreateWebView
But if your browser has crashed (does OnProcessFailed trigger?) then you might need some additional cleanup.
That additional cleanup will take time though as now the background processes all have to be started up from scratch for the out of process control.

In that case you would do something like:
- CloseWebView
- CloseBrowserProcess
- ... wait until the BrowserProcessIDLong property returns 0
- CreateWebView

No restart command needed I think as it would do the above.

A completely different approach might be to use VB6 CreateObject method to create the WebView2 control instead of creating it in the VB6 designer.

Clearly I don't know all the background and the things you need, but I would still try and see if you can help prevent the crash (like disabling the GPU acceleration bit). 

--
Wil
Reply


Messages In This Thread
i want msedgewebview2 process ID.. - by hys999 - 2023-02-10, 12:17:20
RE: i want msedgewebview2 process ID.. - by wila - 2023-02-11, 18:22:42
RE: i want msedgewebview2 process ID.. - by wila - 2023-02-11, 19:29:22
RE: i want msedgewebview2 process ID.. - by wila - 2023-02-11, 20:09:03
RE: i want msedgewebview2 process ID.. - by wila - 2023-02-13, 13:21:41
RE: i want msedgewebview2 process ID.. - by wila - 2023-02-23, 21:22:08
RE: i want msedgewebview2 process ID.. - by wila - 2023-03-14, 20:57:50
RE: i want msedgewebview2 process ID.. - by wila - 2023-03-15, 11:07:00
RE: i want msedgewebview2 process ID.. - by wila - 2023-03-15, 13:58:01
RE: i want msedgewebview2 process ID.. - by wila - 2023-03-15, 14:21:55
RE: i want msedgewebview2 process ID.. - by wila - 2023-03-16, 00:00:02
RE: i want msedgewebview2 process ID.. - by wila - 2023-03-16, 22:50:25
RE: i want msedgewebview2 process ID.. - by wila - 2023-03-17, 15:57:22

Forum Jump:


Users browsing this thread: 3 Guest(s)