Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

AV in TppPrintDialog.InitializePrinterControls

edited March 2004 in General
I am randomly getting an AV in TppPrintDialog.InitializePrinterControls.
I am using D6 and RB 7.01.

I have looked through the code and cannot see how an AV could happen in this
procedure.
FPrinter is checked for nil before the procedure is even called.

This error has happened 4 times in the past 4 months.
I am going to put the Debug info in the app so next time I can get the exact
line, but does anyone have any ideas?

Thanks,
Dennis

Comments

  • edited March 2004
    Hi Dennis,

    Try updating to ReportBuilder 7.03 for Delphi 6 and see if that helps. If
    not, I'll definitely be interested to see what you find out about this AV
    and hopefully solve the problem asap.

    --
    Best Regards,

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

    I will try upgrading, but in the meantime the AV was traced to the line

    if (ppPrinters.PrinterInfo[cbxPrinters.Items[liIndex]].IsLocal) then

    Was this line known to cause the AV that was fixed in 7.02?

    Thanks,
    Dennis


  • edited March 2004

    I do not recall. There have been mods to the print dialog. However, it is
    possible that some other issue with code elsewhere could cause an AV to
    appear elsewhere.

    Please try updating to RB 7.03 and then if that does not work, try to create
    an example project that demonstrates the issue.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.