Delphi2010 Compiler Error: F2084 Internal Error: L1737

When I compile our project, use Delphi 2010 Trial, there is a fatal error:

[DCC Fatal Error] F2084 Internal Error: L1737

Take the inner mistake. No hints.

Is this a compiler error or trial limit?

Thanks.

+3
source share
9 answers

, . , DCU, , ( - , , DCU D2010), . < > , : , , Embarcadero ...

+1

.

? , ? , ?

EDIT: , ... .

+4

Delphi 2009, Generics , . , , . , QC.

+1

, .

SmartPtr, Barry Kelly, D2010 . smartptr D2009.

.

, smartptr :) - D2010: (

, D2010.

type

  TSmartPtr<T: class> = class(TInterfacedObject, TFunc<T>)
  private
    FValue: T;
  public
    constructor Create(AValue: T);
    destructor Destroy; override;
    function Invoke: T;
  end;

  TSmartPtrArray<T: class> = array of TFunc<T>;


implementation

{ TObjectHandle }

constructor TSmartPtr<T>.Create(AValue: T);
begin
  FValue := AValue;
end;

destructor TSmartPtr<T>.Destroy;
begin
  if Assigned(FValue) then
    FValue.Free;
end;

function TSmartPtr<T>.Invoke: T;
begin
  Result := FValue;
end;
+1

- . ( ). - L1737 .

+1

. :

interface

type
  TBoolFunction = reference to function: Boolean;

" ...", , .

+1

, ( L), , , . , , , Delphi (D5, , , D7), , .

0

, delphi, DCU.

0

That means your code is too complicated. Any file with a specific threshold (10k lines or so) begins to exhibit these problems - another - it "was compiled with a different version of x errors."

Although it is usually said that related code in the same block in delphi, it really does not scale, so ignore it and break it down as much as possible.

0
source

Source: https://habr.com/ru/post/1717048/


All Articles