Cannot Compile Programs in Delphi XE2 with 5.6

edited 10:13AM in FastReport VCL 5
Delphi XE2 compile breaks with the following messages:
[DCC Error] fs_isysrtti.pas(97): E2034 Too many actual parameters
[DCC Error] fs_isysrtti.pas(99): E2034 Too many actual parameters
[DCC Fatal Error] fs_iinterpreter.pas(1344): F2063 Could not compile used unit 'fs_isysrtti.pas'

and the code below id the problem.

function FormatV(const Fmt: String; Args: Variant): String;
var
ar: TVarRecArray;
sPtrList: TList;
begin
VariantToVarRec(Args, ar, sPtrList);
Result := Format(Fmt, ar);
ClearVarRec(ar, sPtrList);
end;

How to Fix? Am I being stupid?

Comments

  • gpigpi
    edited 10:13AM
    It seems you still have some files from old version
    Uninstall all instances of FR, remove all FR's files and folders (see system and hidden folders too), remove all references to FR from IDE and then install FR 5.6 again

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.