Recent

Author Topic: Generic class: help needed  (Read 1423 times)

kjteng

  • Full Member
  • ***
  • Posts: 211
Generic class: help needed
« on: November 29, 2021, 02:18:15 pm »
I was trying to code a generic class and encountered this problem:
Changes of made are some time ignore by Lazarus. For example, say I change one of the line from x := 1 to x :=5 and  recompile it, the new exe will stick to  x:=1 !   
I can only get the correct exe file if I delete the project1.compiled file in the lib\i386-win32 folder.

What have I missed out or done wrongly?  Is this the normal behaviour of lazarus when we have generic class?

Attached is my demo file.

Imants

  • Full Member
  • ***
  • Posts: 194
Re: Generic class: help needed
« Reply #1 on: November 29, 2021, 02:25:52 pm »
I had same problem and only solution I found is clean build if it is source package or rebuild if it is in project

 

TinyPortal © 2005-2018