Sign in Join

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

Mailing lists / lazarus / 2015-05

IDE unable to load form due to missing property

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

I'm referring to this change.

========[svn r46263]==============
commit 53ca8b6c866480b5accbaa24049e5485f840a03d
Author: juha <juha at 4005530d-fff6-0310-9dd1-cebe43e6787f> Date: Sat Sep 20 09:21:20 2014 +0000

LCL: remove unused TDateEdit.DialogTitle. Issue #1278

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 46263 4005530d-fff6-0310-9dd1-cebe43e6787f
======================

Probably my limited use of LCL, but any idea what the error below means or how to resolve it? I now get a runtime error in my application when this specific form is being loaded.

==============================
2015-05-15 13:55:12 9504 Error Handled exception type "EReadError", message "Error reading EDatum.DialogTitle: Unknown property: "DialogTitle"" ...snip...
2015-05-15 13:55:12 9504 Error Backtrace: $00000000005F2246 line 86 of gui/frmberekendetoets.pp
2015-05-15 13:55:12 9504 Error Backtrace: $00000000005FC1C4 line 1155 of gui/frmpunten.pp
2015-05-15 13:55:12 9504 Error Backtrace: $00000000005F8CAC line 282 of gui/frmpunten.pp
==============================

While in Lazarus IDE, I tried loading the form in question using the form designer, but then Lazarus gives me the following error: ==============================
Stream=TBerekendeToetsForm: Root=:TBerekendeToetsForm Component Class: TDateEdit
Error reading EDatum.DialogTitle: Unknown property: "DialogTitle" Stream position: 4096
==============================

Selecting "Continue Loading" shows the form, but closing it and opening it, I get the same error again.

I take it a previously known property doesn't exist any more? But how do I resolve this in my application and allow Lazarus IDE to load the form?

I'm using Lazarus 1.5 r48959 FPC 2.6.4 x86_64-linux-gtk 2.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Tony Whyman
to Graeme Geldenhuys

Open the problem form in the designer.

Ignore the missing property error and continue loading

Do something to change the form. e.g. move it

Save the form.

now re-compile

Graeme Geldenhuys wrote 54 lines
Hi, I'm referring to this change. ========[svn r46263]============== commit 53ca8b6c866480b5accbaa24049e5485f840a03d Author: juha <juha at 4005530d-fff6-0310-9dd1-cebe43e6787f> Date: Sat Sep 20 09:21:20 2014 +0000 LCL: remove unused TDateEdit.DialogTitle. Issue #1278 git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 46263 4005530d-fff6-0310-9dd1-cebe43e6787f ====================== Probably my limited use of LCL, but any idea what the error below means or how to resolve it? I now get a runtime error in my application when this specific form is being loaded. ============================== 2015-05-15 13:55:12 9504 Error Handled exception type "EReadError", message "Error reading EDatum.DialogTitle: Unknown property: "DialogTitle"" ...snip... 2015-05-15 13:55:12 9504 Error Backtrace: $00000000005F2246 line 86 of gui/frmberekendetoets.pp 2015-05-15 13:55:12 9504 Error Backtrace: $00000000005FC1C4 line 1155 of gui/frmpunten.pp 2015-05-15 13:55:12 9504 Error Backtrace: $00000000005F8CAC line 282 of gui/frmpunten.pp ============================== While in Lazarus IDE, I tried loading the form in question using the form designer, but then Lazarus gives me the following error: ============================== Stream=TBerekendeToetsForm: Root=:TBerekendeToetsForm Component Class: TDateEdit Error reading EDatum.DialogTitle: Unknown property: "DialogTitle" Stream position: 4096 ============================== Selecting "Continue Loading" shows the form, but closing it and opening it, I get the same error again. I take it a previously known property doesn't exist any more? But how do I resolve this in my application and allow Lazarus IDE to load the form? I'm using Lazarus 1.5 r48959 FPC 2.6.4 x86_64-linux-gtk 2. Regards, - Graeme -

Reply by email

Tony Whyman
to Michael Van Canneyt

It probably should - but I see this error all the time when modifying components and you do need to do something more than just ignore the error. Maybe a bug report is needed.

Another thought - at run time an unknown property error might be better reported as a warning rather than as an error.

Tony W

Michael Van Canneyt wrote 17 lines
On Fri, 15 May 2015, Tony Whyman wrote: > Open the problem form in the designer. > > Ignore the missing property error and continue loading Shouldn't choosing 'ignore' mark the form as modified ? Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Giuliano Colla
to Tony Whyman: It probably should - but I see this error all the time when modifying components and you…

Il 15/05/2015 15:24, Tony Whyman ha scritto:

Another thought - at run time an unknown property error might be better reported as a warning rather than as an error.

This would be a very welcome enhancement.

If the unknown property is actually used in code, it's flagged as an error at compile time, and it gets fixed before execution. If it's not, it is most likely a "cosmetic" property, or an useless leftover from previous versions. A mild warning, or even a silent skip, would be much less annoying, and more appropriate.

Giuliano

Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet?

Reply by email