Is this a memory leak?

108 views
Skip to first unread message

Dimitris Kounalakis

unread,
May 25, 2013, 11:59:27 AM5/25/13
to wa...@googlegroups.com
  if not (csDesigning in ComponentState) then
    FHandler := TVCLClientHandler.Create(Self);

This is returned as a memory leak.

Dimitris Kounalakis

unread,
May 25, 2013, 12:22:25 PM5/25/13
to wa...@googlegroups.com
I put the following to the formclose event and it is fixed.

if CefSingleProcess then begin wachromium.Load('about:blank'); // avoid AV when closing application
while wachromium.Browser.IsLoading  do Application.ProcessMessages; end;

Architector.WaspAce

unread,
May 25, 2013, 4:11:35 PM5/25/13
to wa...@googlegroups.com


суббота, 25 мая 2013 г., 19:59:27 UTC+4 пользователь Dimitris Kounalakis написал:
  if not (csDesigning in ComponentState) then
    FHandler := TVCLClientHandler.Create(Self);

This is returned as a memory leak.

Thank you.


//If an application provides its own top-level window it should handle OS
// close notifications by calling cef_browser_host_t::CloseBrowser(false (0))
// instead of immediately closing (see the example below). This gives CEF an
// opportunity to process the 'onbeforeunload' event and optionally cancel the
// close before do_close() is called.
// The cef_life_span_handler_t::OnBeforeclose() function will be called
// immediately before the browser object is destroyed. The application should
// only exit after OnBeforeclose() has been called for all existing browsers.

I will fix this soon.

Architector.WaspAce

unread,
May 28, 2013, 5:02:49 AM5/28/13
to wa...@googlegroups.com
Oh sorry, i can't fix it in the TWAChromium component. You indeed have to intercept form close query in your application as you show above.
Reply all
Reply to author
Forward
0 new messages