ListBox1.items.clear did not solved the problem.
ListBox1.items.text did not showed anything after ListBox1.clear but on entering a new set of 3 lines all of the previous cleared lines also showed.
I can try to make a simple example but the actual whole program has several units and it would be difficult to post.
I'm using Windows 7, 64 bit but running a 32 bit Lazarus 1.0.14, Date 2013-11-16 - FPC version 2.6.2 - SVN version 43446 - i386-win32-win32/win64 (from the Lazarus About screen).
I use ListBox.clear in many places and never had this problem. I'll find the reference that mention 'objects' not cleared by Listbox.clear and post to see if it helps someone see what 's happening.
-------------------------------
Found it. The reference is from:
http://forum.codecall.net/topic/73705-the-basic-working-with-tlistbox/"Note that deleting an item will not automatically free/destroy associated object. So if you have object associated with the deleted item, you need to employ another method to make sure the object will not becoming memory leak."
Actually, they are refereing to the use of ListBox.Items.Delete, not ListBox.clear. Don't know what 'another method to employ'.
--------------------------------