Delphi Chromium Embedded on DLL Form

I have an application that uses VCL forms from a DLL. On one of the forms I put TChromium from DelphiChromiumEmbedded. The problem is: when I unload my DLL (the form is destroyed), the application freezes without any errors or AV files. I found some answer - commented // cef _shutdown in lib_cef.pas. In this way, the form was successfully destroyed, but I have a big memory leak. When using any other components that create a form from a DLL, the destruction and unloading of the DLL is successful.

How can I normally unload DLLs with a form using the TChromium component?

+5
source share
1 answer

Whenever I need to create objects for a DLL, let us make similar errors when unloading a DLL.

If you created an instance of the application object, destroy the application instance before loading the DLL.

0
source

All Articles