Recent

Author Topic: Why Does LAZ Keep Adding Blank Procedures??  (Read 2630 times)

mas steindorff

  • Sr. Member
  • ****
  • Posts: 426
Re: Why Does LAZ Keep Adding Blank Procedures??
« Reply #45 on: August 20, 2019, 01:45:08 am »
I got this - functions started duplicating. I fixed it by shutting down Lazarus and restarting, issue went away. No idea why it started happening.
same for me.  I've used Lazarus for many years, and have started to see this error only since my upgrade to 2.0.0.  I also have not found what triggers it but I "feel"  it has something to do with the class completion settings. it started a few days after I set "insert method implementations" -> last.  the project that triggers it is large and I'm not allowed to make it pubic so I'm playing around on some other projects to try and reproduce the bug.
one point, The project compiles (clean & build) just fine before the bug bites.  it is when I add a method via the object editor that causes the reintroduction of 4 to 8 procedures.

is 2.0.0 already too old to help track this bug?
windows 7/10 - laz 2.0 / 1.2.6 general releases

jamie

  • Hero Member
  • *****
  • Posts: 1990
Re: Why Does LAZ Keep Adding Blank Procedures??
« Reply #46 on: August 20, 2019, 03:32:18 am »
Does the class within the source file contain  message handlers methods ?

mas steindorff

  • Sr. Member
  • ****
  • Posts: 426
Re: Why Does LAZ Keep Adding Blank Procedures??
« Reply #47 on: August 20, 2019, 04:21:19 am »
if OnClick methods are message handlers, then Yes, the new procedures being added match the class (form) and names to a T.  all I've needed to do to fix the error is to delete the new procedures with a block highlight and hit the delete key.  I don't do anything in the top of the unit where the procedures are declared.  otherwise I'm not using and other messaging object in that form.
windows 7/10 - laz 2.0 / 1.2.6 general releases