Why WebViewManager can still send messages to WebView2 after BlazorWebView Unloaded event. #4044
Replies: 4 comments
-
upd: the message received after BlazorWebView Unloaded event is : "__bwv:["OnRenderCompleted",6,null]" |
Beta Was this translation helpful? Give feedback.
-
@yurastanchuk, it looks like the problem is that the code in your screenshot is directly disposing the underlying |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@yurastanchuk could you please provide a minimal repro project demonstrating the issue, hosted as a public GitHub repository? This will help us investigate the issue further. Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Because of this issue , I have to dispose webview processes manually. I do it as following after window close event:

But still even with delay of 10 seconds after BlazorWebView Unloaded event, I still sometimes get error 'Cannot access a disposed object'. Why this can happen and how to properly close webview process to avoid this error?
Full error: error.txt
Beta Was this translation helpful? Give feedback.
All reactions