Sign in Join

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

Mailing lists / lazarus / 2003-08

TIBQUERY ==> Unable to stream Form1:TForm1

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Siegfried Goericke

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I have updated all fpc(cvs, tag RELEASE_1_0_10) and lazarus(cvs without a tag, from now).
The folloing problem occurs: when I placed the TIBQUERY component on the Form, and I want to compile the project, a message box with " Unable to stream Form1:TForm1" poped up.

have others the same problem? What can do, for more information (debug ...).
- --
Best Regards/Gruss Siggi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/SgRXvSVXyCFL/5IRAl/NAJ9uGl3Iqp5buoijH1/5UO4urb8eIACffBBR zLlmLtTGZoNaxwBkSyRjDH4=
=y/1p
-----END PGP SIGNATURE-----

Reply by email

Siegfried Goericke
to Siegfried Goericke
Mattias Gaertner wrote 24 lines
On Mon, 25 Aug 2003 14:42:55 +0200 Siegfried Goericke wrote: > > I have updated all fpc(cvs, tag RELEASE_1_0_10) and lazarus(cvs without a > tag, from now). > The folloing problem occurs: when I placed the TIBQUERY component on the > Form, and I want to compile the project, a message box with " Unable to > stream Form1:TForm1" poped up. > > have others the same problem? What can do, for more information (debug > ...). Sounds like the fpc bug #2492. The FCL has a workaround for this since 3 months, so it should be in the 1.0.10 release. But I don't know if all fcl files in the cvs are tagged with RELEASE_1_0_10. Do cd fpc/fcl/ cvs -z3 update -dP -r HEAD Mattias

I have this done, but the same behaviour occurs.

Here is the gdb output:
************************************************************ MouseDownOnControl Form1:TForm1 No Shift down, No CTRL down [TDesigner.MouseDownOnControl] END
************************************************************ MouseUpOnControl Form1:TForm1
AddComponent A TRUE
[TCustomFormEditor.CreateComponent] Class='TIBQUERY' opInsert :TIBQUERY 40B0BB24
TPascalParserTool.BuildTree B OnlyIntf=FALSE
/home/blgoeris/src/PascalProjects/c8gui/main.pas
[TEventsCodeTool.CompleteComponent] A Component="Form1:TForm1 [TEventsCodeTool.CompleteComponent] CurComponent=Button1:TBUTTON [TEventsCodeTool.CompleteComponent] CurComponent=Button2:TBUTTON [TEventsCodeTool.CompleteComponent] CurComponent=Datasource1:TDATASOURCE [TEventsCodeTool.CompleteComponent] CurComponent=Ibdatabase1:TIBDATABASE [TEventsCodeTool.CompleteComponent]
CurComponent=Ibtransaction1:TIBTRANSACTION
[TEventsCodeTool.CompleteComponent] CurComponent=Ibquery1:TIBQUERY [TEventsCodeTool.CompleteComponent] invoke class completion [TEventsCodeTool.CompleteComponent] END
NEW COMPONENT ADDED: Form.ComponentCount=6 NewCI.Control.Owner.Name=Form1 [TDesigner.MouseLeftUpOnControl] END
[TMainIDE.DoRunProject] A
TMainIDE.DoSaveAll
TMainIDE.DoSaveProject A SaveAs=FALSE SaveToTestDir=FALSE

Program received signal SIGSEGV, Segmentation fault. $0837902d in _CLASSES$$_$$_TWRITER_$$_WRITEPROPERTY$TPERSISTENT$POINTER () (gdb)

Reply by email

Mattias Gaertner
to Siegfried Goericke: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have updated all fpc(cvs, tag…
Show quoted text 14 lines
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I have updated all fpc(cvs, tag RELEASE_1_0_10) and lazarus(cvs without a tag, from now). The folloing problem occurs: when I placed the TIBQUERY component on the Form, and I want to compile the project, a message box with " Unable to stream Form1:TForm1" poped up. have others the same problem? What can do, for more information (debug ...).

Sounds like the fpc bug #2492. The FCL has a workaround for this since 3 months, so it should be in the 1.0.10 release. But I don't know if all fcl files in the cvs are tagged with RELEASE_1_0_10. Do

cd fpc/fcl/
cvs -z3 update -dP -r HEAD

Mattias

Show quoted text 14 lines
- -- Best Regards/Gruss Siggi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/SgRXvSVXyCFL/5IRAl/NAJ9uGl3Iqp5buoijH1/5UO4urb8eIACffBBR zLlmLtTGZoNaxwBkSyRjDH4= =y/1p -----END PGP SIGNATURE----- _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Michael Van Canneyt
to Mattias Gaertner: On Tue, 26 Aug 2003 09:45:13 +0200 I just saw that TIBQuery has no workaround for the…
Mattias Gaertner wrote 35 lines
On Tue, 26 Aug 2003 09:45:13 +0200 Siegfried Goericke wrote: > Am Montag, 25. August 2003 18:42 schrieb Mattias Gaertner: > > On Mon, 25 Aug 2003 14:42:55 +0200 > > > > Siegfried Goericke wrote: > > > > > > > I have updated all fpc(cvs, tag RELEASE_1_0_10) and lazarus(cvs > > > without a tag, from now). > > > The folloing problem occurs: when I placed the TIBQUERY component on > > > the Form, and I want to compile the project, a message box with " > > > Unable to stream Form1:TForm1" poped up. > > > > > > have others the same problem? What can do, for more information (debug > > > ...). > > > > Sounds like the fpc bug #2492. The FCL has a workaround for this since 3 > > months, so it should be in the 1.0.10 release. But I don't know if all > > fcl files in the cvs are tagged with RELEASE_1_0_10. Do > > > > cd fpc/fcl/ > > cvs -z3 update -dP -r HEAD > > > > > > Mattias > > > > I have this done, but the same behaviour occurs. I just saw that TIBQuery has no workaround for the compiler bug. You can not use it in the designer. Create it in the program. I have removed TIBQuery from the package.

What compilerbug, and what is the workaround that could solve this ?

Michael.

Reply by email

Siegfried Goericke
to Mattias Gaertner: On Tue, 26 Aug 2003 09:45:13 +0200 I just saw that TIBQuery has no workaround for the…

==snip==

Show quoted text 12 lines
> > What compilerbug, You can't use forward defined classes in published properties. > and what is the workaround that could solve this ? For example: Create TCustomIBxxx classes without published properties and publish the properties in descended classes. Mattias

have you an example or a short description for the workarround, so we can patch the TIBQuery component.

Best Regards/Gruss Siggi

Reply by email

Mattias Gaertner
to Siegfried Goericke: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have updated all fpc(cvs, tag…
Show quoted text 27 lines
Am Montag, 25. August 2003 18:42 schrieb Mattias Gaertner: > On Mon, 25 Aug 2003 14:42:55 +0200 > > Siegfried Goericke wrote: > > > > I have updated all fpc(cvs, tag RELEASE_1_0_10) and lazarus(cvs > > without a tag, from now). > > The folloing problem occurs: when I placed the TIBQUERY component on > > the Form, and I want to compile the project, a message box with " > > Unable to stream Form1:TForm1" poped up. > > > > have others the same problem? What can do, for more information (debug > > ...). > > Sounds like the fpc bug #2492. The FCL has a workaround for this since 3 > months, so it should be in the 1.0.10 release. But I don't know if all > fcl files in the cvs are tagged with RELEASE_1_0_10. Do > > cd fpc/fcl/ > cvs -z3 update -dP -r HEAD > > > Mattias > I have this done, but the same behaviour occurs.

I just saw that TIBQuery has no workaround for the compiler bug. You can not use it in the designer. Create it in the program.

I have removed TIBQuery from the package.

Mattias

Show quoted text 36 lines
Here is the gdb output: ************************************************************ MouseDownOnControl Form1:TForm1 No Shift down, No CTRL down [TDesigner.MouseDownOnControl] END ************************************************************ MouseUpOnControl Form1:TForm1 AddComponent A TRUE [TCustomFormEditor.CreateComponent] Class='TIBQUERY' opInsert :TIBQUERY 40B0BB24 TPascalParserTool.BuildTree B OnlyIntf=FALSE /home/blgoeris/src/PascalProjects/c8gui/main.pas [TEventsCodeTool.CompleteComponent] A Component="Form1:TForm1 [TEventsCodeTool.CompleteComponent] CurComponent=Button1:TBUTTON [TEventsCodeTool.CompleteComponent] CurComponent=Button2:TBUTTON [TEventsCodeTool.CompleteComponent] CurComponent=Datasource1:TDATASOURCE [TEventsCodeTool.CompleteComponent] CurComponent=Ibdatabase1:TIBDATABASE [TEventsCodeTool.CompleteComponent] CurComponent=Ibtransaction1:TIBTRANSACTION [TEventsCodeTool.CompleteComponent] CurComponent=Ibquery1:TIBQUERY [TEventsCodeTool.CompleteComponent] invoke class completion [TEventsCodeTool.CompleteComponent] END NEW COMPONENT ADDED: Form.ComponentCount=6 NewCI.Control.Owner.Name=Form1 [TDesigner.MouseLeftUpOnControl] END [TMainIDE.DoRunProject] A TMainIDE.DoSaveAll TMainIDE.DoSaveProject A SaveAs=FALSE SaveToTestDir=FALSE Program received signal SIGSEGV, Segmentation fault. $0837902d in _CLASSES$$_$$_TWRITER_$$_WRITEPROPERTY$TPERSISTENT$POINTER () (gdb) _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to Mattias Gaertner
Show quoted text 41 lines
On Tue, 26 Aug 2003, Mattias Gaertner wrote: > On Tue, 26 Aug 2003 09:45:13 +0200 > Siegfried Goericke wrote: > > > Am Montag, 25. August 2003 18:42 schrieb Mattias Gaertner: > > > On Mon, 25 Aug 2003 14:42:55 +0200 > > > > > > Siegfried Goericke wrote: > > > > > > > > > > I have updated all fpc(cvs, tag RELEASE_1_0_10) and lazarus(cvs > > > > without a tag, from now). > > > > The folloing problem occurs: when I placed the TIBQUERY component > > > > on the Form, and I want to compile the project, a message box with > > > > " Unable to stream Form1:TForm1" poped up. > > > > > > > > have others the same problem? What can do, for more information > > > > (debug...). > > > > > > Sounds like the fpc bug #2492. The FCL has a workaround for this > > > since 3 months, so it should be in the 1.0.10 release. But I don't > > > know if all fcl files in the cvs are tagged with RELEASE_1_0_10. Do > > > > > > cd fpc/fcl/ > > > cvs -z3 update -dP -r HEAD > > > > > > > > > Mattias > > > > > > > I have this done, but the same behaviour occurs. > > I just saw that TIBQuery has no workaround for the compiler bug. You can > not use it in the designer. Create it in the program. > > I have removed TIBQuery from the package. What compilerbug,

You can't use forward defined classes in published properties.

and what is the workaround that could solve this ?

For example: Create TCustomIBxxx classes without published properties and publish the properties in descended classes.

Mattias

Reply by email