Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Wrong freeing of LMDThemeServices

Hi,

LMDThemeServices will be freed in the finalization of LMDThemes. It is restricted to the main application (not IsLibrary) what is correct when a runtime package was loaded (.bpl).

We are using dll's, they are nearly "standalone". If I unload the dll, the LMDThemeServices will not be freed, the "DeallocateHWnd(FHwnd);" will not be called, bad access violations are the results.

I changed the finalization to:

finalization
  if ((not IsLibrary) or (not ModuleIsPackage)) and Assigned(ThemeService) then
    LMDThemeServices.Free;

This is working for me and should be correct, perhaps you can take it into the repository?

Bye

Andre Engelshove

Comments

Sign In or Register to comment.