its me again.
fired lazarus fixes with 3.2.2 installed with fcupdeluxe.
fille New aplication
saved project1 and unit 1
add a button
then go to file >> new form
added unit 2
it adds automatically to lpr in uses and application.createform(tform2,form2).
added code to show form2 with click of the button
added unit2 in the uses section of unit 1
then run (f9)
then sigsev when i click on the button
if i restart lazarus, is missing again unit2 in uses section and the procedure application.createform below is missing to.
if add manually sigsev again, and restart and is gone again those lines.
attach the project to this post
I tried (with a default windows install, all as the installer provides).
Couldn't reproduce, but maybe found something that will help narrowing down the steps to reproduce.
You don't specify if/when you save unit2. If you don't, it will be saved when you compile.
What I noted is, that when I
- save unit1
- add unit2 with form
- add unit2 to uses of unit1
- try to write "form2.sh" and autocomplete => it complains that it can't find unit2.
Apparently there are issues when a project is saved but some units are not (and that is not saved = file does not exist yet).
However, in my case all else remained ok.
project run ok, and all code remained as it was. Reloading the project did not change anything.
In your attached project, unit2/form2 is not (no longer?) in the auto-create list for forms (in project options), and the "Application.CreateForm" for form2 is also missing.
If you got a crash, then that must have already been removed at the time of compilation (i.e. either when you saved before, or when the IDE autosaved).
Quest remains to find the exact steps.