My program has a main form and two other forms (form1 and form2), called from main.
These two forms are similar, so I copy-pasted a Checkbox from form1's visual to form2's visual.
Both checkboxes have an OnChange procedure added to toggle the Checked property.
When the checkbox in form2 is clicked, then I get a SIGSEGV.
The identical checkbox in form1 behaves normally.
I tried to remove the checkbox from form2 and replaced it with a newly created checkbox with another name. Same result.
I then deleted form2 and it's unit entirely (see also note below), recreated it with another name and created a checkbox within the new form. Same result.
I suspect I should not have copy-pasted the checkbox in the first place.
How can I clean this up?
(Note: after form2 is deleted (project > remove from project, and manually deleting the files, I still find the unit in the lps file.)