Which version of ReportBuilder/Delphi are you using? Do you receive this error at designtime or runtime? Please provide the exact steps you take to reproduce the error and I'll try to recreate it on my machine.
We use packages with our application. because we found out that some initialization sections where not fired we did call the Initializepackage method during startup, this caused the problem in RB (7.04)
Have you tried this in the latest version of ReportBuilder? Although this is not a known issue, it could have been something that was fixed for a later version.
- SysUtils.LoadPackage calls SysUtils.InitializePackage, your code should never call it.
- I have never seen a case in which unit Initializations did not fire, unless an exception occurs in a prior Initialization section, in which case you usually get Runtime Error 216
- Add Delphi\Lib\Debug to the library path and you can trace the LoadPackage and InitalizePackage, and Initializations.
- All unit initialization should fire a single time. If the RB units fire multiple times, it will cause errors.
-- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Comments
Which version of ReportBuilder/Delphi are you using? Do you receive this
error at designtime or runtime? Please provide the exact steps you take to
reproduce the error and I'll try to recreate it on my machine.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
We use packages with our application.
because we found out that some initialization sections where not fired we
did call the Initializepackage method during startup, this caused the
problem in RB (7.04)
Have you tried this in the latest version of ReportBuilder? Although this
is not a known issue, it could have been something that was fixed for a
later version.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
never call it.
- I have never seen a case in which unit Initializations did not fire,
unless an exception occurs in a prior Initialization section, in which case
you usually get Runtime Error 216
- Add Delphi\Lib\Debug to the library path and you can trace the LoadPackage
and InitalizePackage, and Initializations.
- All unit initialization should fire a single time. If the RB units fire
multiple times, it will cause errors.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com