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

WebView Leaks Memory #28

Closed
alittletina opened this issue Jul 12, 2012 · 3 comments
Closed

WebView Leaks Memory #28

alittletina opened this issue Jul 12, 2012 · 3 comments

Comments

@alittletina
Copy link

WebView will leak memory whenever a view is removed - the HWND hook is not removed so a reference is kept and the GC will not clean up the view that has the WebView and any linked classes.

A lot of applications switch views and this becomes a big problem over time. Unfortunately I am not familiar with C++ so I cannot fix the code and make a pull request, so I request that you fix it! It is a big problem in my hobby application :(

I suggest that we automatically remove the hook or remove it when IDisposable::Dispose() is called.

Thank you!

@ataranto
Copy link
Owner

oh, thanks for the heads up. i don't switch views in my app so i've never experienced this. i'll investigate a fix when i have some time to work on CefSharp.

@ataranto
Copy link
Owner

To be clear, are you using the WinForms or WPF control when you experience this issue?

@alittletina
Copy link
Author

Thanks for getting to this!! This occurs when using the WPF WebView.

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

No branches or pull requests

2 participants