Sign in Join

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

Mailing lists / lazarus / 2003-11

form streaming error problem

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Andrew Johnson

I discovered a problem with error handling of form streaming. I have a form with an invalid component in it.

To reproduce this error I installed Tony's tmpack, added a hover button to the form. saved the project. closed the ide and rebuilt from the c/l (i.e. without the package) upon opening lazarus it auto reopened the project with the hover button and the Following occurs -

I get a Error Reading Form with a cancel button.

Upon clicking "Cancel" I get a more descriptive error, of a specific component. If I click "Ignore" on this error the form finishes loading, though scrambled(as expected). However if I click "Cancel" on this error then I get an "Unable to build form from file" error. When I click Ok on this then the Ide goes into a recursive loop and becomes unresponsive spitting -

[TMainIDE.DoOpenMainUnit] A ProjectLoading=TRUE MainUnitID=0

on the command line.

If on this 3rd error I clicked "Cancel" I get the save project prompt. if I cancel or close, I get another recursive loop spitting -

TMainIDE.DoCloseEditorFile A PageIndex=0

on the command line.

Not likely a very common problem, but should probably be looked into, and I am not sure where this is likely to be caused to try and fix it myself.

Andrew

Reply by email

Mattias Gaertner
to Andrew Johnson
Show quoted text 9 lines
I discovered a problem with error handling of form streaming. I have a form with an invalid component in it. To reproduce this error I installed Tony's tmpack, added a hover button to the form. saved the project. closed the ide and rebuilt from the c/l (i.e. without the package) upon opening lazarus it auto reopened the project with the hover button and the Following occurs - I get a Error Reading Form with a cancel button.

removed

Upon clicking "Cancel" I get a more descriptive error, of a specific component. If I click "Ignore" on this error the form finishes loading, though scrambled(as expected). However if I click "Cancel" on this error then I get an "Unable to build form from file" error.

removed

Show quoted text 7 lines
When I click Ok on this then the Ide goes into a recursive loop and becomes unresponsive spitting - [TMainIDE.DoOpenMainUnit] A ProjectLoading=TRUE MainUnitID=0 on the command line.

fixed

Show quoted text 10 lines
If on this 3rd error I clicked "Cancel" I get the save project prompt. if I cancel or close, I get another recursive loop spitting - TMainIDE.DoCloseEditorFile A PageIndex=0 on the command line. Not likely a very common problem, but should probably be looked into, and I am not sure where this is likely to be caused to try and fix it myself.

Mattias

Reply by email