Hello in Delphi 10.2 - 10.2.3 there is a problem under Linux that "System.Contnrs" is not accepted. The exchange of "System.Contnrs" with "System.Generics.Collections" solves the problem.
Environment:
Linux (Debian 10.5 Console)
Delphi 12.2.3
Brook 5.1.0
Sagui 3.1.3 Linux
In the code the following code :
TSgUnloadEvents = class sealed
private
FCS: TCriticalSection;
FList: TObjectList;
protected
property CS: TCriticalSection read FCS;
property List: TObjectList read FList;
convert to :
TSgUnloadEvents = class sealed
private
FCS: TCriticalSection;
FList: TObjectList<TSgLibUnloadHolder>;
protected
property CS: TCriticalSection read FCS;
property List: TObjectList<TSgLibUnloadHolder> read FList;
change Constructor Code :
constructor TSgUnloadEvents.Create(ACS: TCriticalSection);
begin
inherited Create;
if not Assigned(ACS) then
raise EArgumentNilException.CreateFmt(SParamIsNil, ['ACS']);
FList := TObjectList.Create;
convert to :
constructor TSgUnloadEvents.Create(ACS: TCriticalSection);
begin
inherited Create;
if not Assigned(ACS) then
raise EArgumentNilException.CreateFmt(SParamIsNil, ['ACS']);
FList := TObjectList<TSgLibUnloadHolder>.Create;
Unfortunately the class "TSgLibUnloadHolder" has to go up as well.
Hello in Delphi 10.2 - 10.2.3 there is a problem under Linux that "System.Contnrs" is not accepted. The exchange of "System.Contnrs" with "System.Generics.Collections" solves the problem.
Environment:
Unfortunately the class "TSgLibUnloadHolder" has to go up as well.
PS: After this conversion, it works wonderfully.