Arno Garrels wrote:
> I have a designtime and a runtime package for D2006, xD10Design.dpk
> and xD10Run.dpk. xD10Design.dpk requires two units included in
> xD10Run.dpk. Usually I put xD10Run.dcp into den Required-section of
> xD10Design.dpk and all is fine. Unfortunately I get an AV at
> SysUtils.LoadPackage when I try to install xD10Design.dpk. When I
> don't put xD10Run.dcp into the Required-section the missing units
> are imported implicitly into the package and all installs and works
> fine. With the DCP in the Required-section I install the same project
> without problems in D5, D7 and D2007.

Is rtl in the requires list of both packages as well? It should be. The
Delphi 5 package will need to require rtl50 since Delphi 5 doesn't support
automatic package suffixes.

Having the run-time package be required by the design-time package really
only does two things, neither of which is terribly important:

1. It increases the chances that changes to the run-time package won't
require recompilation of the design-time package. Recompiling the
design-time package after modifying the run-time package is never a bad
idea anyway, though.

2. It makes the IDE automatically add the run-time package to the
run-time-package list in the project options when the associated
design-time package is activated. Nothing stops the developer from doing
this manually instead.

-- 
Rob


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to