TfrReport/GetVariableValue - access violation

edited 12:07PM in FastReport 2.xx VCL
Hi dear Mr. FastReport,

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.

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.