Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i want msedgewebview2 process ID..
#25
Hi,

Good question.
I don't know if the BrowserProcessIDLong property is set to 0 when the browser crashes.
Right now I'm passing on this property from Microsoft: BrowserProcessID
Their documentation doesn't have that kind of detail.

But when the browser crashes, the OnProcessFailed event should trigger and you can use that to identify if the browser crashed. The OnProcessFailed event basically wraps CoreWebView2.ProcessFailed.

What I would do is create a property on your form, say a boolean: BrowserCrashed that you set to False on CreateWebView.
Then in event OnProcessFailed you set BrowserCrashed to True.
In your restart logic you can then use the BrowserCrashed property to see what action to take.

Hope this helps,
--
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: 1 Guest(s)