Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-01

Components vs Custom components

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Bruno Alejandro: Hi!! I don't know what is happening, but look, I made a simple component, we insert in…
Show quoted text 32 lines
Hi!! This is the output in terminal when I start lazarus ... If I install this simple component in the custom, give me this: 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 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

Show quoted text 44 lines
Thanks Bruno Chavez On Sat, 2003-01-18 at 13:29, Mattias Gaertner wrote: > On 18 Jan 2003 11:29:22 -0600 > Bruno Alejandro 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 with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Bruno Alejandro
to Bruno Alejandro: Hi!! I don't know what is happening, but look, I made a simple component, we insert in…

Hi!!

This is the output in terminal when I start lazarus ...

If I install this simple component in the custom, give me this:

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
lazarus]$

but if I install it as a standard component it works really fine...

Thanks
Bruno Chavez

Mattias Gaertner wrote 32 lines
On 18 Jan 2003 11:29:22 -0600 Bruno Alejandro 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 with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to Bruno Alejandro: Hi!! I don't know what is happening, but look, I made a simple component, we insert in…
Show quoted text 9 lines
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

Reply by email

Bruno Alejandro
to Bruno Alejandro: Hi!! I don't know what is happening, but look, I made a simple component, we insert in…

Hi!!!

Thanks, you're right, I have that confusion, I correct in the registration unit the code from Tcp Server to TcpServer, and works really good...

It works in standard because there, in the registration unit (idecomp.pp) I used TcpServer, and in the other not...

But now it's working...

thanks
Bruno Chavez

Show quoted text 8 lines
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

Reply by email

Bruno Alejandro

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, but when I restart the lazarus, only show the image at the startup of the lazarus, and then close it and don't start...

of couse I need to recompile the lazarus again...

I hope this help you

Bruno Chavez...

Reply by email