Recent

Author Topic: Am I going crazy? Fantastic error message.  (Read 3776 times)

typo

  • Hero Member
  • *****
  • Posts: 3051
Am I going crazy? Fantastic error message.
« on: October 31, 2014, 02:57:48 pm »
See image (attached).

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Am I going crazy? Fantastic error message.
« Reply #1 on: October 31, 2014, 03:20:30 pm »
Maybe you are using an old ppu ?

Then fpc does not see the same as the IDE.

Recompile the package, and also search the project dir for any ppu that does not belong there.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Am I going crazy? Fantastic error message.
« Reply #2 on: October 31, 2014, 03:47:52 pm »
Computer restarted, cleaned and buld all project and Lazarus. All remains the same.

Here (attached) is the file which is causing this. It is a class by Flávio Etrusco for SynEdit plugin I am trying to convert to a component.

Now there is also an external exception with message "Unknown Property" for Editor, since the class calls Editor internally.
« Last Edit: October 31, 2014, 03:55:39 pm by typo »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Am I going crazy? Fantastic error message.
« Reply #3 on: October 31, 2014, 04:22:44 pm »
Editor is protected and read only?



But also notice: Clean build removes (afaik) known ppu. FPC may see more.

Use fpc -va and find where it loads the ppu., or search all project and package folders for a ppu of that name.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Am I going crazy? Fantastic error message.
« Reply #4 on: October 31, 2014, 04:29:11 pm »
I found the error, thanks. The property is protected and ReadOnly.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Am I going crazy? Fantastic error message.
« Reply #5 on: October 31, 2014, 05:10:48 pm »
I found the error, thanks. The property is protected and ReadOnly.

No its not, if it was it wouldn't be visible in the object inspector at all. The problem is somewhere else keep looking.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Am I going crazy? Fantastic error message.
« Reply #6 on: October 31, 2014, 07:32:49 pm »
Indeed, there were 2 ppu's.

 

TinyPortal © 2005-2018