New Blog Post: PDF/A and Metadata

AccessViolation in function TppCustomReport.GetGroupCount: Integer using RB18

edited February 2017 in General
Hi,

after upgrading from RB17.02 to 18.00 nearly all reports create an
AccessViolation in

function TppCustomReport.GetGroupCount: Integer;
begin
Result := FGroups.Count;
end;

as FGroups is nil.

Recompiling our software using 17.02 everything works fine.

Any ideas

Tia Carsten

--


Hint: We altered the sources!Hint: We altered the sources!

Comments

  • edited February 2017
    Exception occurs on
    *********
    for li := 0 to aReport.GroupCount - 1 do
    begin ....
    *****

    where aReport originates from

    if lbConvert then
    begin
    Convert(FVersionNo);
    //Patch CE
    TReportConverter.convert(TppReport(self),FVersionNo);
    //EOP
    FConverted := True;
    end;
    out of TppProdducer.loaded

    Carsten Eider fragte :

    --


    Hint: We altered the sources!Hint: We altered the sources!
  • edited February 2017
    Hi Carsten,

    This is not a known issue.

    My suggestion is to trace into your TReportConverter class and see
    exactly what is happening.

    Also, starting with RB 18, we added the TppTemplate.OnConvert event
    which fires when loading a report saved with a prior version. This
    would be a better place to perform your custom conversions rather than
    the Loaded event of the producer.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2017
    Hi Nico,

    Problem was found, caused by a hardcast.
    Solution was using a softcast.

    Thank you for the hint with TppTemplate.OnConvert, I will test it.

    Thx
    Carsten

    Nico Cizik (Digital Metaphors) legte dieses als Verknüpfung auf seinen
    Bildschirm :

    --


    Hint: We altered the sources!Hint: We altered the sources!
This discussion has been closed.