ICoreWebView2.add_ProcessFailed

Add an event handler for the ProcessFailed event. ProcessFailed runs when any of the processes in the WebView2 Process Group

encounters one of the following conditions:

Condition | Details

Unresponsiveness | The process indicated by the event args has become unresponsive to user input. This is only reported for renderer processes, and will run every few seconds until the process becomes responsive again.

\> [!NOTE]\n\> When the failing process is the browser process, a ICoreWebView2Environment5::BrowserProcessExited event will run too.

Your application can use ICoreWebView2ProcessFailedEventArgs and ICoreWebView2ProcessFailedEventArgs2 to identify which condition and process the event is for, and to collect diagnostics and handle recovery if necessary. For more details about which cases need to be handled by your application, see COREWEBVIEW2_PROCESS_FAILED_KIND.

\snippet ProcessComponent.cpp ProcessFailed

interface ICoreWebView2
HRESULT
add_ProcessFailed

Meta