Stack Overflow
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.
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
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: