Recent

Author Topic: Compilation Failure of MetaDarkStyle Package with FPC/main  (Read 272 times)

wp

  • Hero Member
  • *****
  • Posts: 12866
In a recent commit to FPC/main (3.3.1) the implementation of FreeAndNil has become more strict to allow only TObject variables as argument. This, however, breaks the compilation of the metadarkstyle package in unit uDarkStyleSchemesLoader, function ScanModule. This function returns a boolean result, but in case of errors calls FreeAndNil(Result) - FreeAndNil of a boolean value? FPC/main does not like this any more. I assume that these lines should be replaced by a simple "result := false" -- and this indeed resolves the compilation error.

wp

  • Hero Member
  • *****
  • Posts: 12866
Re: Compilation Failure of MetaDarkStyle Package with FPC/main
« Reply #1 on: May 14, 2025, 07:30:50 pm »
Has been fixed by the author. OPM provides the fixed package.

 

TinyPortal © 2005-2018