Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Issues managing multiple WPF WebViews #179

Closed
jasonds opened this issue Oct 2, 2013 · 4 comments
Closed

Memory Issues managing multiple WPF WebViews #179

jasonds opened this issue Oct 2, 2013 · 4 comments
Labels

Comments

@jasonds
Copy link

jasonds commented Oct 2, 2013

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?

@dcartwright
Copy link
Contributor

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.

@jornh
Copy link
Contributor

jornh commented Feb 23, 2014

If this issue is still nagging you then have a look at the #249 Pull Request. It would be great to know if it resolves the issue you guys see or not.

@JanEggers
Copy link
Contributor

@jasonds can u try again with the current master i did some dispose work

@amaitland
Copy link
Member

Please upgrade to CefSharp3 if there's still a problem. If you experience issues with the latest release please create a new issue 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants