Stack Overflow

edited 8:13PM in FastScript
Hi folks...

I call this method:

fsScript1.AddClass(TVirtualTable,'TVirtualTable');

...and then my script is this:

function ProduceCRSExport : boolean;
var
oDataSet : TVirtualTable;
begin
oDataSet := TVirtualTable.Create;
result := true;
end;

begin
end.


I receive a stack overflow error. Why is this?

Regards,
Tony.

Comments

  • ShivanShivan Germany
    edited 8:13PM
    toneman wrote: »
    ...
    fsScript1.AddClass(TVirtualTable,'TVirtualTable');

    You get a stack overflow, because wrong usage of AddClass..
    First param is class, to be added. Second param is parent-classname.
    So correct usage would be:
    fsScript1.AddClass(TVirtualTable,[b]TVirtualTable.ClassParent.ClassName[/b]);
    

Leave a Comment