[lazarus] Components vs Custom components

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jan 23 11:52:55 EST 2003


On 22 Jan 2003 09:10:26 -0600
Bruno Alejandro <bruno at vias.com> wrote:

> Hi!!
> 
> This is the output in terminal when I start lazarus ...
> 
> If I install this simple component in the custom, give me this:
> 
> [bruno at Onix lazarus]$ ./lazarus
> 
> Gdk-WARNING **: locale not supported by C library
> [TMainIDE.Destroy] A
> [TMainIDE.Destroy] B  -> inherited Destroy...
> [TMainIDE.Destroy] END
> An unhandled exception occurred at 0x080D9D32 :
> RegisterComponents: Invalid unitname "Tcp Server"
>   0x080D9D32  TREGISTEREDCOMPONENTLIST__REGISTERCOMPONENTS,  line 261 of
> compreg.pp
> 
> [TgtkObject.Destroy] WARNING: There are 2 unreleased DCs, a detailed
> dump follows:
> [TgtkObject.Destroy]   DCs:   084093C4 08409044
> [TgtkObject.Destroy] WARNING: There are 10 unreleased GDIObjects, a
> detailed dump follows:
> [TgtkObject.Destroy]   GDIOs: 404CE484 404CE3D4 404CE344 084094D4
> 08409484 404CE2F4 40517224
> [TgtkObject.Destroy]   gdiBitmap: 1
> [TgtkObject.Destroy]   gdiBrush: 4
> [TgtkObject.Destroy]   gdiFont: 3
> [TgtkObject.Destroy]   gdiPen: 2
> forms.pp - finalization section
> [bruno at Onix lazarus]$
> 
> but if I install it as a standard component it works really fine...

I'm not sure why it works as standard component, but I know, that "Tcp
Server" is indeed not a valid unitname. Maybe you have confused palette name
with unit name?
Can you send your component registration code?


Mattias


> 
> Thanks 
> Bruno Chavez
> 
> 
> On Sat, 2003-01-18 at 13:29, Mattias Gaertner wrote:
> > On 18 Jan 2003 11:29:22 -0600
> > Bruno Alejandro <bruno at vias.com> wrote:
> > 
> > > Hi!!
> > > 
> > > I don't know what is happening, but look, I made a simple component,
> > > we insert in the object inspector the ListenPort property, and it
> > > returns the method GetTCPPort..
> > > 
> > > The problem is, if I insert the component via idcomp.pp compiles ok,
> > > and works fine, the lazarus start ok... but if I insert via custom
> > > component, then compiles ok, 
> > 
> > Changing one of the cvs files as non developer is not wise. The
> > customidecomps.pas is recommended for this. 
> > 
> > 
> > > but when I restart the lazarus, only show
> > > the image at the startup of the lazarus, and then close it and don't
> > > start...
> > 
> > Can you give more details?
> > Does it hangup or crash or .. ?
> > 
> > 
> > Mattias
> > 
> > _________________________________________________________________
> >      To unsubscribe: mail lazarus-request at miraclec.com with
> >                 "unsubscribe" as the Subject
> >    archives at http://www.lazarus.freepascal.org/mailarchives
> > 
> 
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives






More information about the Lazarus mailing list