-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Implement CriticalFinalizerObject #881
Comments
I'm wondering if this might resolve issues like #800 (Cef Shutdown is fine under normal circumstances, crashes when rebooting/shutting down windows). |
Interesting. I sure appreciate the codeproject URL, I ended up using that pattern for wrapping power change notifications (AC <-> DC transitions, battery level, etc..) for my project. I'm not quite sure how this would apply to CefSharp yet though. Bill |
It was just an idea, something I stumbled across. Searching for ideas on how to make sure the managed resources are always disposed. When shutting down/restarting when the So if you've got any thoughts/suggestions? |
Potentially look at using a |
Maybe I'm being dense, but what filehandle is used by |
Really just a note to myself to look into something further. Need to make sure those unmanaged resources we allocate get handled cleanly. When abruptly exiting e.g. https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Core/Internals/RenderClientAdapter.h#L146 https://msdn.microsoft.com/en-us/library/windows/desktop/aa366537%28v=vs.85%29.aspx
|
I should have included the first part for clarity. |
Has a Ideally keep this all in |
@rassilon Have you ever implemented a |
More reading to do |
Resolved with #2237 Have no switched to a totally managed solution using build in classes that implement |
So I'm thinking some of our classes may need to implement
CriticalFinalizerObject
to grantee that their resources are disposed of correctly.https://msdn.microsoft.com/en-us/library/system.runtime.constrainedexecution.criticalfinalizerobject%28v=vs.110%29.aspx
http://www.codeproject.com/Articles/29534/IDisposable-What-Your-Mother-Never-Told-You-About
Anyone have past experience implementing
CriticalFinalizerObject
? Is it worth doing?The text was updated successfully, but these errors were encountered: