salvadordf/CEF4Delphi

Classes in uCEFTask.pas contain pointers to interfaces of objects that can be destroyed

mterrisse opened this issue · 2 comments

Erratically I have crashes in uCEFTask.pas because pointers point to released objects.
I have an alternative to pointers than works on my projects, see the patch attached.

Regards,

Michel Terrisse
NoPointerInTasks.patch

Thanks for reporting this issue!

I see some generics in the patch and CEF4Delphi must work with old Delphi versions. I'll try to adapt your suggestions to keep backwards compatibility.

The latest commit includes an alternative way to fix this issue.
I had to add the TCEFComponentIdList class for backwards compatibility reasons.
I also had to make several changes to the classes that handle CEF tasks.