You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed memory not being reclaimed when opening and closing multiple WebView instances in WPF.
The application is wrapped with CEF.Initialize and Shutdown.
I give the ability to open multiple WebViews each with a different address and close them at will. Calling dispose is hit or miss, resulting sometimes in a C++ runtime error - "pure virtual function call," or in issues with the runtime callable wrapper.
I've read through other issues and saw that most people only handle one WebView. Does anyone have any good examples of handling multiple WebViews in WPF?
The text was updated successfully, but these errors were encountered:
I have experienced similar issues. I think the "right" answer is to call Dispose() every time you ditch a WebView. However, as you say, this often causes exceptions, especially on subsequent JavaScript interop calls. Right now I'm just trying to limit the number of times I need to dispose a WebView (make them singleton and re-use as often as possible), but I too would like to see a solution for this.
I noticed memory not being reclaimed when opening and closing multiple WebView instances in WPF.
The application is wrapped with CEF.Initialize and Shutdown.
I give the ability to open multiple WebViews each with a different address and close them at will. Calling dispose is hit or miss, resulting sometimes in a C++ runtime error - "pure virtual function call," or in issues with the runtime callable wrapper.
I've read through other issues and saw that most people only handle one WebView. Does anyone have any good examples of handling multiple WebViews in WPF?
The text was updated successfully, but these errors were encountered: