fsScript1.GetILCode (EAbstract Error)

I am trying to develop a utility that will allow my to compile my scripts for distribution with my application. I want them to be pre-compiled, keeping my code safe and allowing for quicker execution.

The code I have in the btnSaveCompiled Button on my form is.
var
  sIL: TStream;
  sFile: TFileStream;
  objWriter : TWriter;
begin
  fsScript1.Clear;
  fsScript1.Lines := Memo1.Lines;
  fsScript1.Parent := fsGlobalUnit;

  sIL := TStream.Create();
  fsScript1.GetILCode(sIL);

  sFile := TFileStream.Create(ExtractFilePath(Application.ExeName)
                              + txtCompiledFileName.Text,
                              fmCreate or fmOpenWrite or fmShareDenyNone);
  sFile.CopyFrom(sIL, sIL.Size);
  sFile.Destroy;
end;

The above code gets an error during execution on the fsScript1.GetILCode(sIL); line
I have tried to debug it but since I am currently running the Demo version it is requesting an fs_xml.pas file which I do not have. I would like to be able to test this script engine for my project.

Any suggestions?

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.