[ANN] Auto disposed handlers

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

[ANN] Auto disposed handlers

Postby fddima » Wed Mar 23, 2016 6:12 am

Hello.

In CefGlue now implemented ability to dispose handler objects automatically.
Just now automatically disposed handlers is: CefResourceHandler, CefCookieVisitor, CefSetCookieCallback, CefDeleteCookiesCallback.
This functionality controlled in schema_cef3.py by 'autodispose' member.
Note, that not all handlers should be used with this option, as-is.
For example handler objects returned by CefClient, most of own life time have zero references, and if enable autodispose on them - they will be disposed after first usage.
This is why 'autodispose' should be enabled carefully, with respect to actual API and usage. I'm no have plans to fix exactly this issue, because i'm working on next generation of bindings, and this will be solved somehow.

This should help to How to correctly use VisitUrlCookies?, and similar questions.

All handler objects implement Dispose(bool) method, so it is can be overriden, and it is expected to use. Feel free to report about additional classes which needed to be autodisposed.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 22 guests