LifespanHandler Dispose?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

LifespanHandler Dispose?

Postby nikandv » Fri Nov 17, 2017 10:27 am

Hello. I use CefSharp for my university WPF project and I've created LifespanHandler class which implements ILifespanHandler interface in order to disallow new tabs/windows and open links in current browser control. Then I use this class like this:

Code: Select all
myBrowser.LifespanHandler = new LifespanHandler();


Everything works exactly how I've expected it to work, but when it comes to disposing, it seems that LifespanHandler doesn't dispose when I leave my Page and so every time I enter this Page and then leave memory usage becomes bigger. I assume LifespanHandler is the cause of the problem because if I comment out this line


Code: Select all
myBrowser.LifespanHandler = new LifespanHandler();


Everything works fine.
I suppose RequestHandler has the same problem

Thanks in advance
nikandv
Newbie
 
Posts: 1
Joined: Fri Nov 17, 2017 10:18 am

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 53 guests