I have a complex application with a main form, which must have FormStyle=fsNormal, and other auto-created forms that are displayed as needed, which must instead have FormStyle=fsStayOnTop. For some strange reason, after I set FormStyle=fsNormal for the main form via the object inspector, the FormStyle reverts to fsStayOnTop after each compilation.
In addition to the unwanted visual effect with the other forms, for some strange reason, if FormStyle=fsStayOnTop in the main form, memory leaks also occur during execution (I presume due to interdependencies between components).
Why this strange behavior? I'm on Windows 11, with Lazarus version 4.6. Thanks.