[Lazarus] Register Package Help

Mattias Gaertner nc-gaertnma at netcologne.de
Fri May 2 00:19:14 CEST 2008


On Thu, 01 May 2008 09:59:08 -0400
Lee Jenkins <lee at datatrakpos.com> wrote:

> Hi all,
> 
> I'm trying to create a package to that contains a unit which defines
> a TShape descendant component following this example:
> 
> http://wiki.lazarus.freepascal.org/Lazarus_Packages#Adding_existing_components_to_a_Package
> 
> The problem that I'm having is that package overwrites the .pas file
> that I include with:

You named the package the same as the unit. 
The IDE should not allow this. Please create a bug report and explain
how you did that. Did you create a new package, added the file and
then saved the package?

 
> { This file was automatically created by Lazarus. Do not edit!
> This source is only used to compile and install the package.
>   }
>[...]
> 
> Before trying to save/compile the package this source file contains
> the source for the component.  After save/compile the contents are
> replaced with the above source.


Mattias
 



More information about the Lazarus mailing list