Sign in Join

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

Mailing lists / lazarus / 2003-05

streaming error with TIBDatabase

12 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Unknown author: At least I have confirmed that there is indeed a problem with TIBDatabase. Here is what I…
Show quoted text 8 lines
Hi all, At least I have confirmed that there is indeed a problem with TIBDatabase. Here is what I have found this weekend. Whenever you drop TIBDatabase control into a form, the name property is not there. I have put in lots of writeln in Writer.inc I found that it is somehow reading a property but I cannot pin down what property it is. Hope some Lazarus/Fpc guru out there can have a look on this. This problem is beyond my comprehension.

It's a compiler bug.
When a forward defined class is used as type for a published property, the class has no RTTI information about its properties. I reported it as #2492. This is the case for TDataBase and TDBDataSet.

Mattias

Reply by email

Unknown author

Works like a charm now. Thanks to everyone.

Regards,

Yoyong

Internet Mail Message
Received from host:
svcr-216-37-230-2.dsl.svcr.epix.net
[216.37.230.2]

From: Michael Van Canneyt on 05/16/2003 08:00 AM
GMT

Michael Van Canneyt To:
Cc: (bcc: Yoyong Hernan-ET/PGI)
Subject: Re: [lazarus] streaming error with
TIBDatabase
05/16/2003 04:00 PM
Please respond to

I checked out using WinCVS but the changes where not there. I tried the

viewcvs

of www.freepascal.org and I found it under CVS tag of head.

Yes.
DO NOT use tags for the FCL - they are dummy tags, which are NOT used.

The FCL is shared between the 1.0 and 1.1 compiler series. There are no 'branches'.

I have reset the tag to the correct position, but please don't use the tags for the FCL.

Michael.

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to Mattias Gaertner: On Mon, 12 May 2003 07:13:09 +0800 It's a compiler bug. When a forward defined class is…
Show quoted text 26 lines
On Thu, 15 May 2003, Mattias Gaertner wrote: > On Mon, 12 May 2003 07:13:09 +0800 > wrote: > > > Hi all, > > > > At least I have confirmed that there is indeed a problem with > > TIBDatabase. Here is what I have found this weekend. Whenever you drop > > TIBDatabase control into a form, the name property is not there. I > > have put in lots of writeln in Writer.inc I found that it is somehow > > reading a property but I cannot pin down what property it is. Hope > > some Lazarus/Fpc guru out there can have a look on this. This problem > > is beyond my comprehension. > > It's a compiler bug. > When a forward defined class is used as type for a published property, > the class has no RTTI information about its properties. I reported it as > #2492. > This is the case for TDataBase and TDBDataSet. Wouldn't the simple fix be to declare these properties in TDatabase/TDBDataset as public instead of Published, and to change them in the descendent classes as published ?

Yes.

Mattias

Reply by email

Unknown author

Hi all,

How can I get the latest copy of fcl?

Here is what I did.

cvs -d login
cvs -d -z 3 update -r FIXES_1_0_0 -Pd fpc

I checked the files db.pp and interbase.pp, the only difference I see are

1. in TIBQuery the property is declared twice in the published section.
2. TDBDataset's Database property was changed from published to public.

Am I doing the right way of getting the latest copy. By the way, I am using WinCVS. And also, I tried to cycle my compiler using the above command to get the latest updates of the compiler and I get a version of 1.0.8-prexxxxx. Can I use this compiler in Lazarus?

Regards,

Yoyong

Internet Mail Message
Received from host:
svcr-216-37-230-2.dsl.svcr.epix.net
[216.37.230.2]

From: Mattias Gaertner on 05/15/2003 03:37 PM GMT

Mattias Gaertner To:
Cc: (bcc: Yoyong Hernan-ET/PGI)
Subject: Re: [lazarus] streaming error with
TIBDatabase
05/15/2003 11:37 PM
Please respond to

Show quoted text 39 lines
On Thu, 15 May 2003, Mattias Gaertner wrote: > On Thu, 15 May 2003 17:10:23 +0200 (W. Europe Daylight Time) > Michael Van Canneyt wrote: > > > > > > > On Thu, 15 May 2003, Mattias Gaertner wrote: > > > > > On Mon, 12 May 2003 07:13:09 +0800 > > > wrote: > > > > > > > Hi all, > > > > > > > > At least I have confirmed that there is indeed a problem with > > > > TIBDatabase. Here is what I have found this weekend. Whenever you > > > > drop TIBDatabase control into a form, the name property is not > > > > there. I have put in lots of writeln in Writer.inc I found that it > > > > is somehow reading a property but I cannot pin down what property > > > > it is. Hope some Lazarus/Fpc guru out there can have a look on > > > > this. This problem is beyond my comprehension. > > > > > > It's a compiler bug. > > > When a forward defined class is used as type for a published > > > property, the class has no RTTI information about its properties. I > > > reported it as > > > #2492. > > > This is the case for TDataBase and TDBDataSet. > > > > Wouldn't the simple fix be to declare these properties in > > TDatabase/TDBDataset as public instead of Published, and to change > > them in the descendent classes as published ? > > Yes. I've changed the FCL accordingly. db.pp and interbase.pp have been updated.

Great. Streaming seems to work now. At least if you delete the double DataBase property of TIBQuery.

I have added a lazarus package InterbaseLaz for interbase. It also shows how to create packages for the FCL.

Mattias

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Michael Van Canneyt
to Unknown author
Show quoted text 12 lines
Hi all, How can I get the latest copy of fcl? Here is what I did. cvs -d login cvs -d -z 3 update -r FIXES_1_0_0 -Pd fpc I checked the files db.pp and interbase.pp, the only difference I see are 1. in TIBQuery the property is declared twice in the published section.

This is now fixed (committed 30 seconds ago)

2. TDBDataset's Database property was changed from published to public.

This is correct.

Michael.

Reply by email

Mattias Gaertner
to Mattias Gaertner: On Thu, 15 May 2003 17:10:23 +0200 (W. Europe Daylight Time) Yes. Mattias
Show quoted text 39 lines
On Thu, 15 May 2003, Mattias Gaertner wrote: > On Thu, 15 May 2003 17:10:23 +0200 (W. Europe Daylight Time) > Michael Van Canneyt wrote: > > > > > > > On Thu, 15 May 2003, Mattias Gaertner wrote: > > > > > On Mon, 12 May 2003 07:13:09 +0800 > > > wrote: > > > > > > > Hi all, > > > > > > > > At least I have confirmed that there is indeed a problem with > > > > TIBDatabase. Here is what I have found this weekend. Whenever you > > > > drop TIBDatabase control into a form, the name property is not > > > > there. I have put in lots of writeln in Writer.inc I found that it > > > > is somehow reading a property but I cannot pin down what property > > > > it is. Hope some Lazarus/Fpc guru out there can have a look on > > > > this. This problem is beyond my comprehension. > > > > > > It's a compiler bug. > > > When a forward defined class is used as type for a published > > > property, the class has no RTTI information about its properties. I > > > reported it as > > > #2492. > > > This is the case for TDataBase and TDBDataSet. > > > > Wouldn't the simple fix be to declare these properties in > > TDatabase/TDBDataset as public instead of Published, and to change > > them in the descendent classes as published ? > > Yes. I've changed the FCL accordingly. db.pp and interbase.pp have been updated.

Great. Streaming seems to work now. At least if you delete the double DataBase property of TIBQuery.

I have added a lazarus package InterbaseLaz for interbase. It also shows how to create packages for the FCL.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner: On Thu, 15 May 2003 17:10:23 +0200 (W. Europe Daylight Time) Yes. Mattias
Mattias Gaertner wrote 31 lines
On Thu, 15 May 2003 17:10:23 +0200 (W. Europe Daylight Time) Michael Van Canneyt wrote: > > > On Thu, 15 May 2003, Mattias Gaertner wrote: > > > On Mon, 12 May 2003 07:13:09 +0800 > > wrote: > > > > > Hi all, > > > > > > At least I have confirmed that there is indeed a problem with > > > TIBDatabase. Here is what I have found this weekend. Whenever you drop > > > TIBDatabase control into a form, the name property is not there. I > > > have put in lots of writeln in Writer.inc I found that it is somehow > > > reading a property but I cannot pin down what property it is. Hope > > > some Lazarus/Fpc guru out there can have a look on this. This problem > > > is beyond my comprehension. > > > > It's a compiler bug. > > When a forward defined class is used as type for a published property, > > the class has no RTTI information about its properties. I reported it as > > #2492. > > This is the case for TDataBase and TDBDataSet. > > Wouldn't the simple fix be to declare these properties in > TDatabase/TDBDataset as public instead of Published, and to change them > in the descendent classes as published ? Yes.

I've changed the FCL accordingly. db.pp and interbase.pp have been updated.

Michael.

Reply by email

Michael Van Canneyt
to Unknown author: I checked out using WinCVS but the changes where not there. I tried the viewcvs of…
I checked out using WinCVS but the changes where not there. I tried the viewcvs of www.freepascal.org and I found it under CVS tag of head.

Yes.
DO NOT use tags for the FCL - they are dummy tags, which are NOT used.

The FCL is shared between the 1.0 and 1.1 compiler series. There are no 'branches'.

I have reset the tag to the correct position, but please don't use the tags for the FCL.

Michael.

Reply by email

Unknown author

I checked out using WinCVS but the changes where not there. I tried the viewcvs of www.freepascal.org and I found it under CVS tag of head.

I will try this tonight.

Regards,

Yoyong

Internet Mail Message
Received from host:
svcr-216-37-230-2.dsl.svcr.epix.net
[216.37.230.2]

From: Michael Van Canneyt on 05/16/2003 07:31 AM
GMT

Michael Van Canneyt To:
Cc: (bcc: Yoyong Hernan-ET/PGI)
Subject: Re: [lazarus] streaming error with
TIBDatabase
05/16/2003 03:31 PM
Please respond to

Show quoted text 8 lines
Hi all, How can I get the latest copy of fcl? Here is what I did. cvs -d login cvs -d -z 3 update -r FIXES_1_0_0 -Pd

fpc

I checked the files db.pp and interbase.pp, the only difference I see are 1. in TIBQuery the property is declared twice in the published section.

This is now fixed (committed 30 seconds ago)

2. TDBDataset's Database property was changed from published to public.

This is correct.

Michael.

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Unknown author

Hi all,

At least I have confirmed that there is indeed a problem with TIBDatabase. Here is what I have found this weekend. Whenever you drop TIBDatabase control into a form, the name property is not there. I have put in lots of writeln in Writer.inc I found that it is somehow reading a property but I cannot pin down what property it is. Hope some Lazarus/Fpc guru out there can have a look on this. This problem is beyond my comprehension.

Regards,
Yoyong Hernan

Not just TIBDatabase but also TIBTransaction, (all that is in interbase class, i think).

Internet Mail Message
Received from host:
svcr-216-37-230-2.dsl.svcr.epix.net
[216.37.230.2]

From: Siegfried Goericke on 05/09/2003 08:59 PM GMT

Siegfried Goericke To:
Cc: (bcc: Yoyong Hernan-ET/PGI)
Subject: [lazarus] streaming error with
TIBDatabase
05/10/2003 04:59 AM
Please respond to

Hi all,

the reported problem (from ) occurs when I drop in (but nothing else) a component from the TIBDatabase and save or run.

"Unable to stream Form1:TForm1."

any ideas ?

thx

Best Regards/Gruss Siggi _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Siegfried Goericke

Hi all,

the reported problem (from ) occurs when I drop in (but nothing else) a component from the TIBDatabase and save or run.

"Unable to stream Form1:TForm1."

any ideas ?

thx

Best Regards/Gruss Siggi

Reply by email

Michael Van Canneyt
to Mattias Gaertner: On Mon, 12 May 2003 07:13:09 +0800 It's a compiler bug. When a forward defined class is…
Mattias Gaertner wrote 16 lines
On Mon, 12 May 2003 07:13:09 +0800 wrote: > Hi all, > > At least I have confirmed that there is indeed a problem with TIBDatabase. > Here is what I have found this weekend. Whenever you drop TIBDatabase > control into a form, the name property is not there. I have put in lots of > writeln in Writer.inc I found that it is somehow reading a property but I > cannot pin down what property it is. Hope some Lazarus/Fpc guru out there > can have a look on this. This problem is beyond my comprehension. It's a compiler bug. When a forward defined class is used as type for a published property, the class has no RTTI information about its properties. I reported it as #2492. This is the case for TDataBase and TDBDataSet.

Wouldn't the simple fix be to declare these properties in TDatabase/TDBDataset as public instead of Published, and to change them in the descendent classes as published ?

Michael.

Reply by email