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

Toolbar item index out of range

edited May 2008 in End User
ReportBuilder 10.08, Delphi 2006

We are experiencing an exception in our EndUser reporting module when
closing our application. The exception is "Toolbar item index out of
range".

The exception happens in the finalization section of ppClass.pas, line
11553. By process of elimination, I have discovered that the exception
happens only after line 1602 in ppRptExp.pas is executed.

Can anyone give us some guidance on how to fix this or how to work around
it? Thanks.

Larry Drews
Occusoft Corporation

Comments

  • edited May 2008
    Hi Larry,

    Are you able to recreate this issue with one of the End User demos located
    in the \RBuilder\Demos\3. End User\... directory? If so, please provide me
    with the exact steps I can take to recreate the problem here on my machine.

    Otherwise, if possible, please send a small example that demonstrates the
    issue in .zip format to support@digital-metaphors.com and I'll take a look
    at it for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2008
    "Nico Cizik \(Digital Metaphors\)" wrote
  • edited May 2008
    "Nico Cizik \(Digital Metaphors\)" wrote
  • edited May 2008

    I ran the RBuilder\Demos\EndUser\Report Explorer example and the code you
    mention never fires.

    Do you have some code that is adding/removing toolbars?

    What is going on in the application when the AV occurs, is the application
    shutting down? Or freeing the designer perhaps?

    Have a you look at the call stack that should provide some clues.

    To fix it we need a reproduceable test case.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited May 2008
    "Nard Moseley \(Digital Metaphors\)"
  • edited May 2008
    "Nard Moseley \(Digital Metaphors\)"
  • edited May 2008

    We can add those changes to the code base. Thanks.

    My guess is that in your application the unit initialization/finalization is
    firing in a different order and that is exposing those errors in the code.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

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