TfrReport/GetVariableValue - access violation
Hi dear Mr. FastReport,
Inside "TfrReport.DoBuildReport" and "TfrReport.PrepareReport" I see you assign these events:
in "TfrParser.CalcOPZ" I see:
And you never clear these events.
frParser object is global object. After I destroy my TfrReport object (or I destroy form/unit owner of the report object) these events are undefined.
In this case, it is possible to get access violation error (I do! specific case, but possible). And I think this have to be corrected.
Thanks,
Plamen.
Inside "TfrReport.DoBuildReport" and "TfrReport.PrepareReport" I see you assign these events:
 frParser.OnGetValue := GetVariableValue;
 frParser.OnFunction := OnGetParsFunction;
in "TfrParser.CalcOPZ" I see:
 if Assigned(FOnGetValue) then
  ...
And you never clear these events.
frParser object is global object. After I destroy my TfrReport object (or I destroy form/unit owner of the report object) these events are undefined.
In this case, it is possible to get access violation error (I do! specific case, but possible). And I think this have to be corrected.
Thanks,
Plamen.